module Pry::RescuableException
def self.===(exception)
def self.===(exception) case exception # Catch when the user hits ^C (Interrupt < SignalException), and assume # that they just wanted to stop the in-progress command (just like bash # etc.) when Interrupt true # Don't catch signals (particularly not SIGTERM) as these are unlikely # to be intended for pry itself. We should also make sure that # Kernel#exit works. when *Pry.config.unrescued_exceptions false # All other exceptions will be caught. else true end end