Details
-
Task
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
None
-
Major Change
Description
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 |
Attachments
Issue Links
- depends on
-
PYTHON-2572 Deprecate NotMasterError and introduce NotPrimaryError
-
- Closed
-