Do log exception on legacy fallback

This commit is contained in:
mvdbeek
2026-04-21 11:24:21 +02:00
parent 8e5801c95f
commit 098e5bf4e3
+1
View File
@@ -167,6 +167,7 @@ class HashicorpVault(Vault):
try:
response = self.client.secrets.kv.read_secret_version(path=legacy)
except (hvac.exceptions.InvalidPath, hvac.exceptions.InvalidRequest):
log.exception(f"Failed to read secret from Hashicorp Vault at key: {key}")
return None
value = response["data"]["data"].get("value")
if value is not None: