Skip to content

Commit

Permalink
Fix bug with importing tool associated files
Browse files Browse the repository at this point in the history
  • Loading branch information
stxue1 committed Nov 26, 2024
1 parent 8b80fc3 commit ae00fba
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/toil/cwl/cwltoil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)}"
)



Expand Down

0 comments on commit ae00fba

Please sign in to comment.