We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65bd15a commit e08945bCopy full SHA for e08945b
django_mongodb_backend/schema.py
@@ -455,6 +455,8 @@ def _create_collection(self, model):
455
# Use the encrypted connection and auto_encryption_opts to create an encrypted client
456
encrypted_client = get_encrypted_client(auto_encryption_opts, self.encrypted_connection)
457
458
+ # If the collection exists, `create_encrypted_collection` will raise an
459
+ # EncryptedCollectionError.
460
with contextlib.suppress(EncryptedCollectionError):
461
encrypted_client.create_encrypted_collection(
462
self.encrypted_connection[self.connection.database.name],
0 commit comments