Skip to content

Commit

Permalink
Fixed a crash in the gi brain
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls authored and Pierre-Sassoulas committed Apr 19, 2022
1 parent 6b1bf6c commit 0be62d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ Release date: TBA

Closes PyCQA/pylint#6221

* Fixed a crash in the ``gi`` brain.

Closes PyCQA/pylint#6371


What's New in astroid 2.11.2?
=============================
Expand Down
4 changes: 3 additions & 1 deletion astroid/brain/brain_gi.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def _gi_build_stub(parent):

try:
obj = getattr(parent, name)
except AttributeError:
except Exception: # pylint: disable=broad-except
# gi.module.IntrospectionModule.__getattr__() can raise all kinds of things
# like ValueError, TypeError, NotImplementedError, RepositoryError, etc
continue

if inspect.isclass(obj):
Expand Down

0 comments on commit 0be62d4

Please sign in to comment.