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

Comments

Projects
None yet
1 participant
@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 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

Update __init__.py
Removed trailing comma that was making read_preference a tuple and causing an invalid readpreference error.

Fixes #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