You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mainly putting this in here if someone is running into similar issues.
The collection objects on version 1.3.1 (most recent version pf pypi by the time of writing) throws a KeyError exception when one checks for document existence:
ifmy_keyindb['my_collection']:
[...]
Intended behavior would imho be to gracefully return False if the document does not exist. This behavior seems to be already implemented in the more recent version 1.3.2. through a new __contains__ method on the Collection class. Resolving #105 would solve this issue.
Mainly putting this in here if someone is running into similar issues.
The collection objects on version 1.3.1 (most recent version pf pypi by the time of writing) throws a
KeyError
exception when one checks for document existence:Intended behavior would imho be to gracefully return
False
if the document does not exist. This behavior seems to be already implemented in the more recent version 1.3.2. through a new__contains__
method on theCollection
class. Resolving #105 would solve this issue.A current workaround obviously is:
Potentially related #113.
The text was updated successfully, but these errors were encountered: