Skip to content

Commit

Permalink
Fix AzureKeyVaultSettingsSource problem in case of field with underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
hramezani committed Sep 20, 2024
1 parent b680531 commit f360c2e
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 @@ -2022,7 +2022,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: # type: ignore
raise KeyError(key)

return self._loaded_secrets[key]
Expand Down

0 comments on commit f360c2e

Please sign in to comment.