Move sys.exit() down

This commit is contained in:
Aaron Lichtman 2019-11-16 14:40:31 +01:00
parent 8d22283b93
commit 4cfff00d0a
No known key found for this signature in database
GPG key ID: 22368077DE9F9903

View file

@ -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: