heynemann / motorengine

Motorengine is a port of MongoEngine for Tornado.
http://motorengine.readthedocs.org
204 stars 64 forks source link

find_all() fails on a field which is not specified #74

Open FPurchess opened 10 years ago

FPurchess commented 10 years ago

Document

class MyDocument(Document):
    pass

Schema

{
    unspecified_field: {}
}

Traceback

[...]
  File "motor/__init__.py", line 629, in _callback
    callback(None, e)
  File "motorengine/queryset.py", line 462, in handle
    raise arguments[1]
KeyError: u'unspecified_field'
FPurchess commented 10 years ago

I'd have contributed a patch, but unfortunately it's really hard to debug because comments are missing :/