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
Ran into this today. The original document is being returned when using the remove and new kwarg...for example:
...find_and_modify(query=query, remove=True)
It causes the following exception:
File "/Users/paul4611/python-virtualenvs/quasar/lib/python2.7/site-packages/mongomock/__init__.py", line 349, in find_and_modify
self.update({'_id':old['_id']}, update)
File "/Users/paul4611/python-virtualenvs/quasar/lib/python2.7/site-packages/mongomock/__init__.py", line 214, in update
for k, v in iteritems(document):
File "/Users/paul4611/python-virtualenvs/quasar/lib/python2.7/site-packages/six.py", line 439, in iteritems
return iter(getattr(d, _iteritems)(**kw))
AttributeError: 'NoneType' object has no attribute 'iteritems'
The text was updated successfully, but these errors were encountered:
Ran into this today. The original document is being returned when using the remove and new kwarg...for example:
It causes the following exception:
The text was updated successfully, but these errors were encountered: