ConfiguationError with MONGO_READ_PREFERENCE #30

tdterry opened this Issue Jul 25, 2013 · 0 comments


None yet

1 participant

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 markunsworth added a commit to knowsis/flask-pymongo that referenced this issue Nov 29, 2013
@markunsworth markunsworth Update
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