-
Type: Bug
-
Resolution: Done
-
Priority: Trivial - P5
-
Affects Version/s: None
-
Component/s: None
-
None
It look like issue is the same as PYTHON-471 (unfortunately, I don't have permissions to reopen that issue).
In [25]: parse_uri('mongodb://host1,host2/db?read_preference=secondaryPreferred') TypeError: 'secondaryPreferred' is not a read preference. venv/lib/python3.5/site-packages/pymongo/common.py in validate_read_preference(dummy, value) 281 """ 282 if not isinstance(value, _ServerMode): --> 283 raise TypeError("%r is not a read preference." % (value,)) 284 return value 285 TypeError: 'secondaryPreferred' is not a read preference.