| Someone wrote in |
Timeout.timeout accepts the exception class as the second parameter. I simply created a BenignTimeout class whose parent is StandardError.
Timeout.timeout(10, BenignTimeout) { do_something } rescue false