Skip to content

Commit 010dd97

Browse files
author
Anton Khodak
committed
Check malformed outputs
1 parent 91032ab commit 010dd97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cwltool/load_tool.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ def _convert_stdstreams_to_files(workflowobj):
124124
if isinstance(workflowobj, dict):
125125
if workflowobj.get('class') == 'CommandLineTool':
126126
for out in workflowobj.get('outputs', []):
127+
if type(out) is not CommentedMap:
128+
raise ValidationException("Output '%s' is not valid" % out)
127129
for streamtype in ['stdout', 'stderr']:
128130
if out.get('type') == streamtype:
129131
if 'outputBinding' in out:

0 commit comments

Comments
 (0)