summaryrefslogtreecommitdiff
path: root/checkers/exceptions.py
diff options
context:
space:
mode:
authorcpopa <devnull@localhost>2014-08-18 15:13:34 +0300
committercpopa <devnull@localhost>2014-08-18 15:13:34 +0300
commitfc3d7edd86a6ca68791fa53c08a94e39406bf7f8 (patch)
tree6c91aa492d8976ab1ba0883bc243fcd0fdafdc25 /checkers/exceptions.py
parent766333545bc67f42aa4710fd08bebba5f55eb7e4 (diff)
downloadpylint-fc3d7edd86a6ca68791fa53c08a94e39406bf7f8.tar.gz
Unproxy the infered instances.
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,