you can not rescue a specific exception in an inline block:

sam@ubuntu:~/Source/bluepill$ pry
[1] pry(main)> def err
[1] pry(main)*   raise Errno::EPERM
[1] pry(main)* end
=> nil
[2] pry(main)> err rescue Errno::EPERM nil
NoMethodError: undefined method `EPERM' for Errno:Module
from (pry):4:in `rescue in __pry__'
[3] pry(main)> begin
[3] pry(main)*   err
[3] pry(main)* rescue Errno::EPERM
[3] pry(main)* end
=> nil
[4] pry(main)>
Merge pull request #196 from SamSaffron/master

You can not rescue a specific exception in an inline block: