Skip to content

Commit b67b335

Browse files
authored
Fix AzureKeyVaultSettingsSource problem in case of field with underscore (#415)
1 parent 7e7ccdb commit b67b335

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_settings/sources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2034,7 +2034,7 @@ def __getitem__(self, key: str) -> str | None:
20342034
if key not in self._loaded_secrets:
20352035
try:
20362036
self._loaded_secrets[key] = self._secret_client.get_secret(key).value
2037-
except ResourceNotFoundError: # type: ignore
2037+
except Exception:
20382038
raise KeyError(key)
20392039

20402040
return self._loaded_secrets[key]

0 commit comments

Comments
 (0)