Displaying 1 result from an estimated 1 matches for "sitechangedexcept".
2007 Dec 06
0
Too many open files leads to timeout exceptions in Mechanize/Net::HTTP?
...method calls.
> class AuthedAgent < WWW::Mechanize
> include Singleton
>
> def initialize
> super
>
> $import.status = ''connecting'';
> $import.save!
> login_page = get($config[:urls][:login])
> raise SiteChangedException, "Login page is 404" if (!
> login_page.title.nil? && login_page.title.include?("The page cannot
> be found"))
>
> $import.status = ''authenticating'';
> $import.save!
> form = login_page.form(''frmL...