ixed a bug that caused creating encrypted journals to fail

This commit is contained in:
Manuel Ebert 2013-11-20 16:55:41 -08:00
parent 560930a2c2
commit fb629266e6
5 changed files with 8 additions and 5 deletions

View file

@ -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: