On 11/17/05, zdennis <zdennis / mktec.com> wrote:
> Harold Hausman wrote:
>
> >
> > .... Right, so, isin't begin, rescue, end supposed to stop exactly this
> > from happening? Or chances are, I've misunderstood.
> >
>
> 'rescue' by itself catches StandardError exceptions and subclasses of StandardError. The
> Timeout::Error is probably not a StandardError, but probably a subclass of Exception.

Yup, that's what it is:
irb(main):004:0> Timeout::Error.ancestors
=> [Timeout::Error, Interrupt, SignalException, Exception, Object, Kernel]

Ignore my first post and catch one of the above explicitly, and that
should solve your problem
(excluding Object and Kernel, of course ;) )