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

@ -75,6 +75,8 @@ def install_jrnl(config_path='~/.jrnl_config'):
default_config['encrypt'] = True
if util.yesno("Do you want to store the password in your keychain?", default=True):
util.set_keychain("default", password)
else:
util.set_keychain("default", None)
print("Journal will be encrypted.")
else:
password = None