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

tdterry opened this issue Jul 25, 2013 · 0 comments

ConfiguationError with MONGO_READ_PREFERENCE #30

tdterry opened this issue Jul 25, 2013 · 0 comments


Copy link

@tdterry 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 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
@dcrosta dcrosta closed this in #33 Dec 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant
You can’t perform that action at this time.