diff options
| author | cpopa <devnull@localhost> | 2014-08-18 15:13:34 +0300 |
|---|---|---|
| committer | cpopa <devnull@localhost> | 2014-08-18 15:13:34 +0300 |
| commit | fc3d7edd86a6ca68791fa53c08a94e39406bf7f8 (patch) | |
| tree | 6c91aa492d8976ab1ba0883bc243fcd0fdafdc25 | |
| parent | 766333545bc67f42aa4710fd08bebba5f55eb7e4 (diff) | |
| download | pylint-fc3d7edd86a6ca68791fa53c08a94e39406bf7f8.tar.gz | |
Unproxy the infered instances.
| -rw-r--r-- | checkers/exceptions.py | 2 |
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, |
