mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-29 22:16:13 +02:00
Fix creating non-existent journals
This commit is contained in:
parent
b8ef404453
commit
54f8382450
2 changed files with 6 additions and 8 deletions
|
@ -102,13 +102,6 @@ def decrypt(journal, filename=None):
|
|||
util.prompt("Journal decrypted to {0}.".format(filename or new_journal.config['journal']))
|
||||
|
||||
|
||||
def touch_journal(filename):
|
||||
"""If filename does not exist, touch the file"""
|
||||
if not os.path.exists(filename):
|
||||
util.prompt("[Journal created at {0}]".format(filename))
|
||||
Journal.PlainJournal._create(filename)
|
||||
|
||||
|
||||
def list_journals(config):
|
||||
"""List the journals specified in the configuration file"""
|
||||
sep = "\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue