Skip to content

Commit

Permalink
Fix AzureKeyVaultSettingsSource problem in case of field with undersc…
Browse files Browse the repository at this point in the history
…ore (pydantic#415)
  • Loading branch information
hramezani authored Sep 20, 2024
1 parent 7e7ccdb commit b67b335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydantic_settings/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -2034,7 +2034,7 @@ def __getitem__(self, key: str) -> str | None:
if key not in self._loaded_secrets:
try:
self._loaded_secrets[key] = self._secret_client.get_secret(key).value
except ResourceNotFoundError: # type: ignore
except Exception:
raise KeyError(key)

return self._loaded_secrets[key]
Expand Down

0 comments on commit b67b335

Please sign in to comment.