From 06ef718954187dd26b007348aaa744064f3ff34b Mon Sep 17 00:00:00 2001 From: kienle <kienle@passcal.nmt.edu> Date: Mon, 6 Nov 2023 09:18:53 -0700 Subject: [PATCH] Fix program crashing with error code 1 --- sohstationviewer/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sohstationviewer/main.py b/sohstationviewer/main.py index 8147dab74..b10051951 100755 --- a/sohstationviewer/main.py +++ b/sohstationviewer/main.py @@ -61,7 +61,7 @@ def main(): config = ConfigProcessor() config.load_config() - do_reset = False + do_reset = None try: config.validate_config() config.apply_config(wnd) @@ -76,7 +76,7 @@ def main(): 'that it is not opened in another program.', QMessageBox.Close) sys.exit(1) - else: + elif do_reset is not None: sys.exit(1) config.apply_config(wnd) -- GitLab