Remove bad exception handling!
Exception is the root of Ruby's exception hierarchy, so when you rescue Exception you rescue from everything, including subclasses such as SyntaxError, LoadError, and Interrupt etc which is a bad idea. Fix: rescue from StandardError.
Showing
Please
register
or
sign in
to comment