From f527a93d5d8556f26a24b16671bac188f6766aee Mon Sep 17 00:00:00 2001 From: karimpwnz Date: Sat, 2 Jan 2021 22:25:52 +0200 Subject: [PATCH] Make suffix local variable in get_text_from_editor --- jrnl/editor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jrnl/editor.py b/jrnl/editor.py index ea89a9ec..1a68028d 100644 --- a/jrnl/editor.py +++ b/jrnl/editor.py @@ -12,7 +12,8 @@ from .color import RESET_COLOR from .os_compat import on_windows -def get_text_from_editor(config, template="", suffix=".jrnl"): +def get_text_from_editor(config, template=""): + suffix = ".jrnl" if config["template"]: template_filename = Path(config["template"]).name suffix = "-" + template_filename