When MongoClient is passed an unknown option we raise a ConfigurationError for example:
>>> MongoClient(uuid_representation='standard')
...
pymongo.errors.ConfigurationError: Unknown option uuid_representation
It would be a better experience if we raised a error message more helpful than "Unknown option uuid_representation". Perhaps we could do some inspection and raise "Unknown option uuid_representation: did you mean uuidRepresentation?"
Related to PYTHON-3033.
- is duplicated by
-
PYTHON-4052 mongo-python-driver - PR #1440: [PYTHON-3036] Improve error message for unknown MongoClient options
- Closed
- is related to
-
PYTHON-4056 Rationalize keys in pymongo/common options
- Backlog
- related to
-
PYTHON-3033 Discrepancy in parameter documentation
- Closed