Fix "$query" KeyError in with PyMongo 2.2+
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
Showing
Please
register
or
sign in
to comment