From ae2fa7c87ee9f9f3293c01277eda4187d80fa761 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 25 Mar 2022 14:27:37 +0000 Subject: [PATCH] Keep session as a string --- bw_add_sshkeys.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bw_add_sshkeys.py b/bw_add_sshkeys.py index c3d889b..6acc636 100755 --- a/bw_add_sshkeys.py +++ b/bw_add_sshkeys.py @@ -61,8 +61,8 @@ def get_session() -> str: Function to return a valid Bitwarden session """ # Check for an existing, user-supplied Bitwarden session - session = os.environ.get('BW_SESSION') - if session is not None: + session = os.environ.get('BW_SESSION', '') + if session: logging.debug('Existing Bitwarden session found') return session