Skip to content

Commit 274e437

Browse files
committed
only strip @id from list items that dicts
1 parent fe15dd3 commit 274e437

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cwltool/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,8 @@ def remove_at_id(doc): # type: (MutableMapping[Text, Any]) -> None
846846
remove_at_id(value)
847847
elif isinstance(value, MutableSequence):
848848
for entry in value:
849-
remove_at_id(entry)
849+
if isinstance(entry, MutableMapping):
850+
remove_at_id(entry)
850851
remove_at_id(out)
851852

852853
def loc_to_path(obj): # type: (Dict[Text, Any]) -> None

0 commit comments

Comments
 (0)