Keep session as a string
This commit is contained in:
parent
1d92fad916
commit
ae2fa7c87e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue