Keep session as a string

This commit is contained in:
Scott Wallace 2022-03-25 14:27:37 +00:00
parent 1d92fad916
commit ae2fa7c87e
Signed by: scott
GPG key ID: AA742FDC5AFE2A72

View file

@ -61,8 +61,8 @@ def get_session() -> str:
Function to return a valid Bitwarden session Function to return a valid Bitwarden session
""" """
# Check for an existing, user-supplied Bitwarden session # Check for an existing, user-supplied Bitwarden session
session = os.environ.get('BW_SESSION') session = os.environ.get('BW_SESSION', '')
if session is not None: if session:
logging.debug('Existing Bitwarden session found') logging.debug('Existing Bitwarden session found')
return session return session