From e51d59d80508b9f119ee698e5fc823a848828f65 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 6 Jan 2023 19:12:32 -0300 Subject: [PATCH] [Fixed] Missleading error on run_with_retry - The code was intended to run on exit --- kibot/out_base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kibot/out_base.py b/kibot/out_base.py index 554a63b5..5bcccc45 100644 --- a/kibot/out_base.py +++ b/kibot/out_base.py @@ -955,12 +955,13 @@ class VariantOptions(BaseOptions): def exec_with_retry(self, cmd, exit_with): try: GS.exec_with_retry(cmd, exit_with) - finally: + except SystemExit: if GS.debug_enabled: if self._files_to_remove: logger.error('Keeping temporal files: '+str(self._files_to_remove)) else: self.remove_temporals() + raise if self._files_to_remove: self.remove_temporals()