Bug fix: totp could be None in bitwarden which fails the schema validation of BitwardenQueryResult (#1178)
This commit is contained in:
@@ -215,7 +215,7 @@ class BitwardenService:
|
|||||||
credential={
|
credential={
|
||||||
BitwardenConstants.USERNAME: item.get("login", {}).get("username", ""),
|
BitwardenConstants.USERNAME: item.get("login", {}).get("username", ""),
|
||||||
BitwardenConstants.PASSWORD: item.get("login", {}).get("password", ""),
|
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],
|
uris=[uri.get("uri") for uri in item.get("login", {}).get("uris", []) if "uri" in uri],
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user