Skip to content

Commit

Permalink
Catch BaseException in safe_getattr
Browse files Browse the repository at this point in the history
  • Loading branch information
cybergrind committed Aug 21, 2017
1 parent 539523c commit 12e2cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _pytest/compat.py
Expand Up @@ -228,7 +228,7 @@ def safe_getattr(object, name, default):
"""
try:
return getattr(object, name, default)
except Exception:
except BaseException:
return default


Expand Down

0 comments on commit 12e2cd6

Please sign in to comment.