Skip to content

Commit

Permalink
Keep session as a string
Browse files Browse the repository at this point in the history
  • Loading branch information
scottwallacesh committed Mar 25, 2022
1 parent 1d92fad commit ae2fa7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bw_add_sshkeys.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ae2fa7c

Please sign in to comment.