Skip to content

Commit

Permalink
Fix type 'int' not iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
mokeyish authored May 21, 2024
1 parent cc26a46 commit 39941fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion box/box.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,8 @@ def __contains__(self, item):
except BoxError:
return False
else:
return children in self[first_item]
it = self[first_item]
return isinstance(it, Iterable) and children in it

def keys(self, dotted: Union[bool] = False):
if not dotted:
Expand Down

0 comments on commit 39941fe

Please sign in to comment.