Skip to content

Commit

Permalink
Catch exceptions on attribute retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
igrek51 committed Apr 22, 2024
1 parent 4b04836 commit e4efde7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nuclear/inspection/inspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def _iter_attributes(obj: Any, config: InspectConfig) -> Iterable[InspectAttribu
def _get_attribute_value(obj: Any, key: str) -> Any:
try:
return getattr(obj, key)
except AttributeError as e:
except BaseException as e:
return e


Expand Down
2 changes: 1 addition & 1 deletion nuclear/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.2.0"
__version__ = "2.2.1"

0 comments on commit e4efde7

Please sign in to comment.