Capture KeyringLocked exception and allow manual password entry

This commit is contained in:
karimpwnz 2021-01-02 03:41:49 +02:00
parent 31ada29a37
commit 29c7023604

View file

@ -176,7 +176,7 @@ def get_keychain(journal_name):
try: try:
return keyring.get_password("jrnl", journal_name) return keyring.get_password("jrnl", journal_name)
except RuntimeError: except (keyring.errors.KeyringLocked, RuntimeError):
return "" return ""