Bug fix: totp could be None in bitwarden which fails the schema validation of BitwardenQueryResult (#1178)

This commit is contained in:
Shuchang Zheng
2024-11-12 03:04:51 -08:00
committed by GitHub
parent efdf4b5cab
commit 5744b3c4c1

View File

@@ -215,7 +215,7 @@ class BitwardenService:
credential={
BitwardenConstants.USERNAME: item.get("login", {}).get("username", ""),
BitwardenConstants.PASSWORD: item.get("login", {}).get("password", ""),
BitwardenConstants.TOTP: item.get("login", {}).get("totp", ""),
BitwardenConstants.TOTP: item.get("login", {}).get("totp", "") or "",
},
uris=[uri.get("uri") for uri in item.get("login", {}).get("uris", []) if "uri" in uri],
)