[Fixed] Missleading error on run_with_retry

- The code was intended to run on exit
This commit is contained in:
Salvador E. Tropea 2023-01-06 19:12:32 -03:00
parent d469d846fc
commit e51d59d805
1 changed files with 2 additions and 1 deletions

View File

@ -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()