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

Method _check_closed

pymongo/asynchronous/encryption.py:490–492  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

488 return cast(bytes, await self._auto_encrypter.decrypt(response))
489
490 def _check_closed(self) -> None:
491 if self._closed:
492 raise InvalidOperation("Cannot use AsyncMongoClient after close")
493
494 async def close(self) -> None:
495 """Cleanup resources."""

Callers 2

encryptMethod · 0.95
decryptMethod · 0.95

Calls 1

InvalidOperationClass · 0.90

Tested by

no test coverage detected