From: Ben Vishny Date: 2010-02-08T08:46:11+09:00 Subject: Re: Rescue Block does not work I単aki Baz Castillo wrote: > El Domingo, 7 de Febrero de 2010, Ben Vishny escribi坦: >> rescue Timeout::Error >> output "Timeout.. waiting 5s then trying again" >> sleep(5) >> else >> success = true >> end >> end > > Are you sure which is the exact exception raised? My mistake. I originally had a generic rescue clause without the Timeout::Error and it was still erroring out - I tried this to see if it would make a difference. Does the rescue clause catch everything if no error is provided? -- Posted via http://www.ruby-forum.com/.