Skip to content

Commit 7a0f48d

Browse files
author
dPys
committed
[FIX] immunize shutil.rmtree to node non-existence for remove_node_directories=True in the case that stop_on_first_crash=False
1 parent 7dd3b37 commit 7a0f48d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/plugins/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def _remove_node_dirs(self):
461461
)
462462
% (self.procs[idx]._id, outdir)
463463
)
464-
shutil.rmtree(outdir)
464+
shutil.rmtree(outdir, ignore_errors=True)
465465

466466

467467
class SGELikeBatchManagerBase(DistributedPluginBase):

0 commit comments

Comments
 (0)