diff options
Diffstat (limited to 'lib/pry/exceptions.rb')
-rw-r--r-- | lib/pry/exceptions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/exceptions.rb b/lib/pry/exceptions.rb index 603dd132..bec48c28 100644 --- a/lib/pry/exceptions.rb +++ b/lib/pry/exceptions.rb @@ -25,7 +25,7 @@ class Pry # Catches SecurityErrors if $SAFE is set module TooSafeException def self.===(exception) - $SAFE > 0 && SecurityError === exception + $SAFE > 0 && exception.is_a?(SecurityError) end end |