DotIndexable default get method exception made more specific
This commit is contained in:
parent
4584e7ba66
commit
04aee4e627
@ -18,7 +18,7 @@ class DotIndexable:
|
||||
def get(self, item, default=None):
|
||||
try:
|
||||
return _get_item_and_maybe_make_dotindexable(self.x, item)
|
||||
except (KeyError, TypeError):
|
||||
except KeyError:
|
||||
return default
|
||||
|
||||
def __getattr__(self, item):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user