Skip to content

Commit 3296549

Browse files
aclark4lifeCopilot
andauthored
Update django_mongodb_backend/schema.py
Co-authored-by: Copilot <[email protected]>
1 parent fa428be commit 3296549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_mongodb_backend/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def _get_encrypted_fields_map(self, model, client, create_data_keys=False):
461461
options = client._options
462462
auto_encryption_opts = options.auto_encryption_opts
463463
kms_provider = router.kms_provider(model)
464-
master_key = self.connection.settings_dict.get("KMS_CREDENTIALS").get(kms_provider)
464+
master_key = self.connection.settings_dict.get("KMS_CREDENTIALS", {}).get(kms_provider)
465465
client_encryption = ClientEncryption(
466466
auto_encryption_opts._kms_providers,
467467
auto_encryption_opts._key_vault_namespace,

0 commit comments

Comments
 (0)