bitwarden Dont fail if already logged in (#287)

This commit is contained in:
Kerem Yilmaz
2024-05-08 22:11:24 -07:00
committed by GitHub
parent a51a20436f
commit ebfc1a6f0f

View File

@@ -58,7 +58,7 @@ class BitwardenService:
login_result = BitwardenService.run_command(login_command, env)
# Print both stdout and stderr for debugging
if login_result.stderr:
if login_result.stderr and "You are already logged in as" not in login_result.stderr:
raise BitwardenLoginError(login_result.stderr)
# Step 2: Unlock the vault