Skip to content

Commit 5689c7e

Browse files
Fix checkFormat fail for Null input
When optional input is null we don't need to call function checkFormat for this input.
1 parent fab8a5e commit 5689c7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool/process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ def _init_job(self, joborder, **kwargs):
551551
if self.formatgraph:
552552
for i in self.tool["inputs"]:
553553
d = shortname(i["id"])
554-
if d in builder.job and i.get("format"):
554+
if d in builder.job and i.get("format") and builder.job[d]:
555555
checkFormat(builder.job[d], builder.do_eval(i["format"]), self.formatgraph)
556556

557557
builder.bindings.extend(builder.bind_input(self.inputs_record_schema, builder.job))

0 commit comments

Comments
 (0)