summaryrefslogtreecommitdiff
path: root/checkers/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'checkers/exceptions.py')
-rw-r--r--checkers/exceptions.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/checkers/exceptions.py b/checkers/exceptions.py
index ecbf4a4..0142d9a 100644
--- a/checkers/exceptions.py
+++ b/checkers/exceptions.py
@@ -291,6 +291,8 @@ class ExceptionsChecker(BaseChecker):
for part, exc in excs:
if exc is YES:
continue
+ if isinstance(exc, astroid.Instance):
+ exc = exc._proxied
if not isinstance(exc, astroid.Class):
# Don't emit the warning if the infered stmt
# is None, but the exception handler is something else,