-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Major Change
We should consider deprecating NotMasterError and renaming it to NotPrimaryError.
Apps that need to be pymongo 3+4 compatible will need to be updated like this:
try: # PyMongo >=3.12 from pymongo.errors import NotPrimaryError except ImportError: # PyMongo <=3.11 from pymongo.errors import NotMasterError as NotPrimaryError
- depends on
-
PYTHON-2572 Deprecate NotMasterError and introduce NotPrimaryError
- Closed