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

ConfiguationError with MONGO_READ_PREFERENCE #30

Closed
tdterry opened this issue Jul 25, 2013 · 0 comments · Fixed by #33 or knowsis/flask-pymongo#1
Closed

ConfiguationError with MONGO_READ_PREFERENCE #30

tdterry opened this issue Jul 25, 2013 · 0 comments · Fixed by #33 or knowsis/flask-pymongo#1

Comments

@tdterry
Copy link

tdterry commented Jul 25, 2013

I tried upgrading to 0.3.0, and no I get a ConfigurationError from pymongo when I use MONGO_READ_PREFERENCE = ReadPreference.PRIMARY. It seems to be because of the trailing comma on https://github.com/dcrosta/flask-pymongo/blob/master/flask_pymongo/__init__.py#L210 causing flask_pymongo to send a tuple to pymongo.

markunsworth added a commit to knowsis/flask-pymongo that referenced this issue Nov 29, 2013
Removed trailing comma that was making read_preference a tuple and causing an invalid readpreference error.

Fixes dcrosta#30
This was referenced Nov 29, 2013
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

Successfully merging a pull request may close this issue.

1 participant