Don't die if you specify a directory (DayOne journal) to install

This commit is contained in:
Nik V 2014-12-11 21:28:04 +08:00
parent ef0227cf89
commit b99c82f9be

View file

@ -87,6 +87,7 @@ def install_jrnl(config_path='~/.jrnl_config'):
except OSError:
pass
if not os.path.isdir(path): # if it's a directory and exists (e.g. a DayOne journal, let it be)
open(default_config['journals']['default'], 'a').close() # Touch to make sure it's there
# Write config to ~/.jrnl_conf