Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FPurchess opened this issue Aug 13, 2014 · 1 comment
Open

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

FPurchess opened this issue Aug 13, 2014 · 1 comment

Comments

@FPurchess
Copy link
Contributor

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant