Skip to content

Commit

Permalink
Ignore all warnings, catch attribute errors still
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed Jul 21, 2022
1 parent 76de016 commit 6a32181
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions astroid/raw_building.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,9 @@ def object_build(
pypy__class_getitem__ = IS_PYPY and name == "__class_getitem__"
try:
with warnings.catch_warnings():
warnings.simplefilter("error")
warnings.simplefilter("ignore")
member = getattr(obj, name)
except (AttributeError, DeprecationWarning, FutureWarning):
except (AttributeError):
# damned ExtensionClass.Base, I know you're there !
attach_dummy_node(node, name)
continue
Expand Down

0 comments on commit 6a32181

Please sign in to comment.