1. Logilab
  2. Untitled project
  3. pylint


cpopa  committed 540c7f0

Unproxy the infered instances.

  • Participants
  • Parent commits fbea462
  • Branches default

Comments (0)

Files changed (1)

File checkers/exceptions.py

View file
                 for part, exc in excs:
                     if exc is YES:
+                    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,