From 01f9712fc4513ddd789cfc7d9c435bb570995c30 Mon Sep 17 00:00:00 2001 From: Jendrik Seipp Date: Wed, 18 Oct 2023 11:19:56 +0200 Subject: [PATCH] If the h2 preprocessor fails, proceed with the original SAS+ task. --- driver/main.py | 2 +- driver/run_components.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/driver/main.py b/driver/main.py index 0dbdd732e..39dab9b88 100644 --- a/driver/main.py +++ b/driver/main.py @@ -39,7 +39,7 @@ def main(): (exitcode, continue_execution) = run_components.run_translate(args) if continue_execution and args.transform_task: print() - run_components.transform_task(args) + (exitcode, continue_execution) = run_components.transform_task(args) elif component == "search": (exitcode, continue_execution) = run_components.run_search(args) if not args.keep_sas_file: diff --git a/driver/run_components.py b/driver/run_components.py index 162e40d40..26da49043 100644 --- a/driver/run_components.py +++ b/driver/run_components.py @@ -129,6 +129,10 @@ def transform_task(args): if err.returncode != -signal.SIGXCPU: returncodes.print_stderr( f"Task transformation returned exit status {err.returncode}") + # If the task transformation failed, we proceed with the original task. + return (err.returncode, True) + else: + return (0, True) def run_search(args):