From: Luis Some Date: 2010-08-19T19:22:51+09:00 Subject: Re: Timeout exception open-uri Brian Candler wrote: > Luis Some wrote: >> The thing is, I'm trying to catch that exception and I'm not getting >> success with that task. I tried: >> rescue Timeout::Error > > That's not the exception you're getting (read the error message > carefully). It's: > > rescue Errno::ETIMEDOUT > > Or better, > > rescue SystemCallError > > which is the superclass of all the Errno::* errors. These are errors > generated by the operating system itself, and this one is occuring > before your 40 second timeout has expired. Hey Brian Thanks for your reply. I'm gonna do some tests with that options you gave me. And yes, was a stupid question... If I get other errors, I'll let you know. Thanks, Luis -- Posted via http://www.ruby-forum.com/.