Skip to content

Commit 8c34f4e

Browse files
committed
Fix null handling in redone find_default_container usage.
Causing tests to fail.
1 parent 179df12 commit 8c34f4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool/draft2tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class CommandLineTool(Process):
174174
def __init__(self, toolpath_object, **kwargs):
175175
# type: (Dict[Text, Any], **Any) -> None
176176
super(CommandLineTool, self).__init__(toolpath_object, **kwargs)
177-
self.find_default_container = kwargs["find_default_container"]
177+
self.find_default_container = kwargs.get("find_default_container", None)
178178

179179
def makeJobRunner(self, use_container=True): # type: (Optional[bool]) -> JobBase
180180
dockerReq, _ = self.get_requirement("DockerRequirement")

0 commit comments

Comments
 (0)