Commits

cpopa  committed 540c7f0

Unproxy the infered instances.

  • Participants
  • Parent commits fbea462

Comments (0)

Files changed (1)

File checkers/exceptions.py

                 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,