fix: omit subprocess return code check
This avoids running into an Exception when bw (tested with bw 2023.1.0) returns a non-zero exit code while checking if a bw session already exists.
This commit is contained in:
parent
cdaebb2930
commit
039f1940a0
|
@ -68,7 +68,7 @@ def get_session(session: str) -> str:
|
|||
return session
|
||||
|
||||
# Check if we're already logged in
|
||||
proc_logged = subprocess.run(["bw", "login", "--check", "--quiet"], check=True)
|
||||
proc_logged = subprocess.run(["bw", "login", "--check", "--quiet"], check=False)
|
||||
|
||||
if proc_logged.returncode:
|
||||
logging.debug("Not logged into Bitwarden")
|
||||
|
|
Loading…
Reference in a new issue