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

Function _sanitize

pymongo/asynchronous/monitor.py:50–54  ·  view source on GitHub ↗

PYTHON-2433 Clear error traceback info.

(error: Exception)

Source from the content-addressed store, hash-verified

48
49
50def _sanitize(error: Exception) -> None:
51 """PYTHON-2433 Clear error traceback info."""
52 error.__traceback__ = None
53 error.__context__ = None
54 error.__cause__ = None
55
56
57def _monotonic_duration(start: float) -> float:

Callers 2

_runMethod · 0.70
_check_serverMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected