From 49dccb60b375da7096e8598f5dff79267375ee33 Mon Sep 17 00:00:00 2001 From: andreasjansson Date: Fri, 13 Sep 2024 13:17:29 +0200 Subject: [PATCH] exit 1 on failure --- cog_safe_push/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cog_safe_push/main.py b/cog_safe_push/main.py index 15f9fb0..7e191b2 100644 --- a/cog_safe_push/main.py +++ b/cog_safe_push/main.py @@ -38,6 +38,7 @@ def main(): run_config(config, no_push) except CogSafePushError as e: print("💥 " + str(e), file=sys.stderr) + sys.exit(1) def parse_args_and_config() -> tuple[Config, bool]: