operation_tracker.py
7.83 KB
-
Fix "$query" KeyError in with PyMongo 2.2+ · 3fdc8a77
This appeared to be happening in the case where there were no PyMongo queries and an empty dictionary was returned. Using dict.get fixes this problem, and is backwards compatible with PyMongo < 2.2. Fixes #13
Brian Zambrano committed