MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / _check_closed

Method _check_closed

pymongo/synchronous/encryption.py:487–489  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

485 return cast(bytes, self._auto_encrypter.decrypt(response))
486
487 def _check_closed(self) -> None:
488 if self._closed:
489 raise InvalidOperation("Cannot use MongoClient after close")
490
491 def close(self) -> None:
492 """Cleanup resources."""

Callers 2

encryptMethod · 0.95
decryptMethod · 0.95

Calls 1

InvalidOperationClass · 0.90

Tested by

no test coverage detected