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
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue