mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 21:46:13 +02:00
ixed a bug that caused creating encrypted journals to fail
This commit is contained in:
parent
560930a2c2
commit
fb629266e6
5 changed files with 8 additions and 5 deletions
|
@ -110,7 +110,7 @@ class Journal(object):
|
|||
journal = None
|
||||
if 'password' in self.config:
|
||||
journal = validate_password(self.config['password'])
|
||||
if not journal:
|
||||
if journal is None:
|
||||
journal = util.get_password(keychain=self.name, validator=validate_password)
|
||||
else:
|
||||
with codecs.open(filename, "r", "utf-8") as f:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue