Skip to content

Commit

Permalink
If the h2 preprocessor fails, proceed with the original SAS+ task.
Browse files Browse the repository at this point in the history
  • Loading branch information
jendrikseipp committed Oct 18, 2023
1 parent ef1a63a commit 01f9712
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion driver/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions driver/run_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 01f9712

Please sign in to comment.