[Mechanize-users] timeout error

Mike Dalessio mike at csa.net
Mon Aug 16 08:33:59 EDT 2010


Hi Diego,

On Fri, Aug 13, 2010 at 4:00 PM, Diego Virasoro <diego.virasoro at gmail.com>wrote:

> Hello,
> is there a way to make Mechanize try again whenever it receives a timeout
> error?


Currently Mechanize will not automatically retry. However, you should easily
be able to write an application-specific wrapper for `get()` that catches
the raised exception (it should be Timeout::Error) and retries according to
your application's specific needs.


>


> Thank you
> Diego
> _______________________________________________
> Mechanize-users mailing list
> Mechanize-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/mechanize-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/mechanize-users/attachments/20100816/72334936/attachment.html>


More information about the Mechanize-users mailing list