Skip to content

Commit a7fca56

Browse files
committed
ensure that runtime_context is not None
1 parent 8d81717 commit a7fca56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cwltool/factory.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ def __init__(self,
4949
self.loading_context = loading_context
5050
if loading_context is None:
5151
self.loading_context = LoadingContext()
52-
self.runtime_context = runtime_context
5352
if runtime_context is None:
5453
self.runtime_context = RuntimeContext()
54+
else:
55+
self.runtime_context = runtime_context
5556

5657
def make(self, cwl):
5758
"""Instantiate a CWL object from a CWl document."""

0 commit comments

Comments
 (0)