From ae00fba8ef87efd54a70e552ed8cc87064b84e44 Mon Sep 17 00:00:00 2001 From: stxue1 Date: Tue, 26 Nov 2024 14:23:17 -0800 Subject: [PATCH] Fix bug with importing tool associated files --- src/toil/cwl/cwltoil.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/toil/cwl/cwltoil.py b/src/toil/cwl/cwltoil.py index 233d06e15b..8d15b60f74 100644 --- a/src/toil/cwl/cwltoil.py +++ b/src/toil/cwl/cwltoil.py @@ -3776,7 +3776,7 @@ def file_import_function(url: str) -> FileID: tool, functools.partial( visit_files, - import_function, + tool_import_function, fs_access, fileindex, existing, @@ -3818,10 +3818,11 @@ def visitSteps( # All CWL Process objects (including CommandLineTool) will have tools # if they bothered to run the Process __init__. return op(cmdline_tool.tool) - raise RuntimeError( - f"Unsupported type encountered in workflow " - f"traversal: {type(cmdline_tool)}" - ) + else: + raise RuntimeError( + f"Unsupported type encountered in workflow " + f"traversal: {type(cmdline_tool)}" + )