From 4a699456c45740ceaf997f68bd7a736200103cbd Mon Sep 17 00:00:00 2001 From: Hannah Bast Date: Sun, 8 Dec 2024 13:26:04 +0100 Subject: [PATCH] When interrupted with Ctrl+C, exit code should be 1 not 0 --- src/qlever/qlever_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qlever/qlever_main.py b/src/qlever/qlever_main.py index dd227866..d93e4549 100644 --- a/src/qlever/qlever_main.py +++ b/src/qlever/qlever_main.py @@ -43,7 +43,7 @@ def main(): log.info("") log.info("Ctrl-C pressed, exiting ...") log.info("") - exit(0) + exit(1) except Exception as e: # Check if it's a certain kind of `AttributeError` and give a hint in # that case.