summaryrefslogtreecommitdiff
path: root/lib/pry/exceptions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pry/exceptions.rb')
-rw-r--r--lib/pry/exceptions.rb2
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