Skip to content

Commit

Permalink
Fix no exception type(s) specified on getattr
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Apr 19, 2021
1 parent d69f5ea commit 8590532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astroid/brain/brain_gi.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _gi_build_stub(parent):

try:
obj = getattr(parent, name)
except:
except AttributeError:
continue

if inspect.isclass(obj):
Expand Down

0 comments on commit 8590532

Please sign in to comment.