common-workflow-language / common-workflow-language/cwltool

Error if prefix is absent

Open
#298 4 comments 0 reactions 0 assignees View on GitHub
status/awaiting user response
Dominant language
Python
Stars
376
Forks
255
Avg merge
2d 7h
Merged PRs (30d)
12

Description

Hello!
If there is no "prefix" in workflow.step.run.inputBinding:
```
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/cwltool/workflow.py", line 587, in job
**kwargs):
File "/usr/local/lib/python2.7/dist-packages/cwltool/draft2tool.py", line 382, in job
j.command_line = flatten(map(builder.generate_arg, builder.bindings))
File "/usr/local/lib/python2.7/dist-packages/cwltool/builder.py", line 198, in generate_arg
args.append(prefix + self.tostr(j))
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
[step varscan] Cannot make job: unsupported operand type(s) for +: 'NoneType' and 'str'
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.