From 5f22d5a3a9b3b0f51598c60ba23550a5bacf72d2 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 6 May 2022 13:03:38 -0300 Subject: [PATCH] Now --quick-start is more robuts - sys.exit() is skipped - Passed dont_stop to the run stage (was only in config) --- kibot/kiplot.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kibot/kiplot.py b/kibot/kiplot.py index 8b05b8c5..de42a58c 100644 --- a/kibot/kiplot.py +++ b/kibot/kiplot.py @@ -378,6 +378,10 @@ def config_output(out, dry=False, dont_stop=False): else: config_error(msg) ok = False + except SystemExit: + if not dont_stop: + raise + ok = False return ok @@ -398,6 +402,9 @@ def run_output(out, dont_stop=False): logger.error(msg) else: config_error(msg) + except SystemExit: + if not dont_stop: + raise def generate_outputs(outputs, target, invert, skip_pre, cli_order, dont_stop=False): @@ -407,7 +414,7 @@ def generate_outputs(outputs, target, invert, skip_pre, cli_order, dont_stop=Fal for out in RegOutput.get_prioritary_outputs(): if config_output(out, dont_stop=dont_stop): logger.info('- '+str(out)) - run_output(out) + run_output(out, dont_stop=dont_stop) # Check if all must be skipped n = len(target) if n == 0 and invert: