mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-05 07:56:14 +02:00
Move sys.exit() down
This commit is contained in:
parent
8d22283b93
commit
4cfff00d0a
1 changed files with 1 additions and 3 deletions
|
@ -196,8 +196,6 @@ def run(manual_args=None):
|
||||||
print(f"[Could not read template at '{config['template']}']", file=sys.stderr)
|
print(f"[Could not read template at '{config['template']}']", file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
raw = util.get_text_from_editor(config, template)
|
raw = util.get_text_from_editor(config, template)
|
||||||
if not raw:
|
|
||||||
sys.exit()
|
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
print("[Compose Entry; " + _exit_multiline_code + " to finish writing]\n", file=sys.stderr)
|
print("[Compose Entry; " + _exit_multiline_code + " to finish writing]\n", file=sys.stderr)
|
||||||
|
@ -208,7 +206,7 @@ def run(manual_args=None):
|
||||||
if raw:
|
if raw:
|
||||||
args.text = [raw]
|
args.text = [raw]
|
||||||
else:
|
else:
|
||||||
mode_compose = False
|
sys.exit()
|
||||||
|
|
||||||
# This is where we finally open the journal!
|
# This is where we finally open the journal!
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue