Skip to content

Commit 03494cc

Browse files
committed
Merge remote-tracking branch 'origin/cwlprov_conf_fixes' into toil-prov
2 parents c68ce7c + 274e437 commit 03494cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cwltool/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ def my_represent_none(self, data): # pylint: disable=unused-argument
836836
if runtimeContext.research_obj is not None:
837837
runtimeContext.research_obj.create_job(
838838
out, None, True)
839-
def remove_at_id(doc): # type: MutableMapping -> None
839+
def remove_at_id(doc): # type: (MutableMapping[Text, Any]) -> None
840840
for key in list(doc.keys()):
841841
if key == '@id':
842842
del doc[key]
@@ -846,7 +846,8 @@ def remove_at_id(doc): # type: MutableMapping -> 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)