Skip to content

Commit f0aadd1

Browse files
committed
restore parsing of draft-2 CWL documents
1 parent 4210788 commit f0aadd1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cwltool/load_tool.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ def _convert_stdstreams_to_files(workflowobj):
4646
# type: (Union[Dict[unicode, Any], List[Dict[unicode, Any]]) -> None
4747

4848
if isinstance(workflowobj, dict):
49-
if (workflowobj['class'] == 'CommandLineTool'
49+
if ('class' in workflowobj
50+
and workflowobj['class'] == 'CommandLineTool'
5051
and 'outputs' in workflowobj):
5152
for out in workflowobj['outputs']:
5253
for streamtype in ['stdout', 'stderr']:

0 commit comments

Comments
 (0)