mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 13:08:31 +02:00
Merge pull request #789 from dbxnr/dbxnr-patch-1
Fix crash while encrypting a journal on first run without saving password
This commit is contained in:
commit
6ea492e25a
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ def set_keychain(journal_name, password):
|
|||
if password is None:
|
||||
try:
|
||||
keyring.delete_password("jrnl", journal_name)
|
||||
except RuntimeError:
|
||||
except keyring.errors.PasswordDeleteError:
|
||||
pass
|
||||
else:
|
||||
keyring.set_password("jrnl", journal_name, password)
|
||||
|
|
Loading…
Add table
Reference in a new issue