From 0dd7ec798c35409e33a3ed9485fc4f2ce79e2adf Mon Sep 17 00:00:00 2001 From: Jonathan van der Steege Date: Sun, 1 May 2022 16:41:33 +0200 Subject: [PATCH] Exit program with message if config is empty. --- jrnl/install.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/jrnl/install.py b/jrnl/install.py index b5ce9b33..f8322fba 100644 --- a/jrnl/install.py +++ b/jrnl/install.py @@ -76,10 +76,8 @@ def load_or_install_jrnl(alt_config_path): config = load_config(config_path) if config is None: - print( - f"Configuration file {config_path} is empty, now using default config" - ) - config = get_default_config() + print("Unable to parse config file", file=sys.stderr) + sys.exit() if is_old_version(config_path): from jrnl import upgrade