Skip to content

Commit

Permalink
fix crash when getting credentials from keyring
Browse files Browse the repository at this point in the history
  • Loading branch information
matrss committed Jul 14, 2023
1 parent 02fff72 commit 3a745fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mslib/utils/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_password_from_keyring(service_name=NAME, username=""):
return None
else:
return cred.password
except keyring.errors.KeyringLocked as ex:
except (keyring.errors.KeyringLocked, keyring.errors.InitError) as ex:
logging.warn(ex)
return None

Expand Down

0 comments on commit 3a745fa

Please sign in to comment.