Skip to content

Commit

Permalink
return none instead of error on samples by default?
Browse files Browse the repository at this point in the history
  • Loading branch information
nsheff committed Aug 15, 2023
1 parent 2eacf23 commit e21c547
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion peppy/simple_attr_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@ def __setattr__(self, item, value):
self._mapped_attr[item] = value

def __getattr__(self, item):
return self._mapped_attr[item]
try:
return self._mapped_attr[item]
except KeyError:
return None

0 comments on commit e21c547

Please sign in to comment.