Skip to content

Commit 1f69c1e

Browse files
committed
Fix case where cachedir is None (i.e. caching disabled)
1 parent ad21bce commit 1f69c1e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cwltool/executors.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ def execute(self,
9797
path_mapper=runtime_context.path_mapper)
9898

9999
if runtime_context.rm_tmpdir:
100-
cleanIntermediate(filter(lambda x: not x.startswith(runtime_context.cachedir), self.output_dirs))
100+
if runtime_context.cachedir is not None:
101+
cleanIntermediate(filter(lambda x: not x.startswith(runtime_context.cachedir), self.output_dirs))
102+
else:
103+
cleanIntermediate(self.output_dirs)
101104

102105
if self.final_output and self.final_status:
103106

0 commit comments

Comments
 (0)