Skip to content

Commit cf87713

Browse files
committed
make the loop iterable static so we can freely edit the dict
1 parent 18da237 commit cf87713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool/command_line_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@ def collect_output_ports(
12581258
if compute_checksum:
12591259
adjustFileObjs(ret, partial(compute_checksums, fs_access))
12601260
expected_schema = cast(RecordSchema, self.names.get_name("outputs_record_schema", None))
1261-
for k in ret:
1261+
for k in list(ret.keys()): # so we don't edit the loops iterable later
12621262
found = False
12631263
for field in expected_schema.fields:
12641264
if k == field.name:

0 commit comments

Comments
 (0)