MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / DuplicateKeyError

Class DuplicateKeyError

pymongo/errors.py:275–276  ·  view source on GitHub ↗

Raised when an insert or update fails due to a duplicate key error.

Source from the content-addressed store, hash-verified

273
274
275class DuplicateKeyError(WriteError):
276 """Raised when an insert or update fails due to a duplicate key error."""
277
278
279def _wtimeout_error(error: Any) -> bool:

Callers 2

_check_command_responseFunction · 0.90
_raise_last_write_errorFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected