Skip to content

Commit fd16f40

Browse files
committed
loadContents and empty value (NEEDS TEST)
1 parent a8024cb commit fd16f40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool/workflow_job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ def postScatterEval(io: CWLObjectType) -> CWLObjectType | None:
633633

634634
fs_access = getdefault(runtimeContext.make_fs_access, StdFsAccess)("")
635635
for k, v in io.items():
636-
if k in loadContents:
636+
if k in loadContents and v is not None:
637637
val = cast(CWLObjectType, v)
638638
if val.get("contents") is None:
639639
with fs_access.open(cast(str, val["location"]), "rb") as f:

0 commit comments

Comments
 (0)