mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-18 12:08:31 +02:00
Minor bug fix
This commit is contained in:
parent
25634c7027
commit
2732ae5419
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ def run(manual_args=None):
|
||||||
|
|
||||||
# If the first textual argument points to a journal file,
|
# If the first textual argument points to a journal file,
|
||||||
# use this!
|
# use this!
|
||||||
first_arg = args.text[0].replace(':', '')
|
first_arg = args.text[0].replace(':', '') if len(args.text) > 0 else None
|
||||||
journal_name = first_arg if (args.text and first_arg in config['journals']) else 'default'
|
journal_name = first_arg if (args.text and first_arg in config['journals']) else 'default'
|
||||||
|
|
||||||
if journal_name is not 'default':
|
if journal_name is not 'default':
|
||||||
|
|
Loading…
Add table
Reference in a new issue