ConfiguationError with MONGO_READ_PREFERENCE #30

Closed
tdterry opened this Issue Jul 25, 2013 · 0 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 markunsworth added a commit to knowsis/flask-pymongo that referenced this issue Nov 29, 2013
@markunsworth markunsworth Update __init__.py
Removed trailing comma that was making read_preference a tuple and causing an invalid readpreference error.

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