Skip to content

Commit

Permalink
Don't make up missing attrs, use the right error
Browse files Browse the repository at this point in the history
  • Loading branch information
nsheff committed Aug 15, 2023
1 parent 55d142e commit d92867c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peppy/simple_attr_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ def __getattr__(self, item):
try:
return self._mapped_attr[item]
except KeyError:
return None
raise AttributeError(f"Attribute not found: {item}")

0 comments on commit d92867c

Please sign in to comment.