Skip to content

Commit 320b036

Browse files
committed
Improved check
1 parent 402d742 commit 320b036

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nipype/pipeline/engine.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,9 +1398,11 @@ def run(self, updatehash=False):
13981398
'Passing the exception.') % outdir)
13991399
pass
14001400
elif ((ex.errno == errno.ENOTEMPTY) and (len(outdircont) != 0)):
1401-
logger.debug(('Folder is not empty (%d items): '
1401+
logger.debug(('Folder contents (%d items): '
14021402
'%s') % (len(outdircont), outdircont))
1403-
raise ex
1403+
raise ex
1404+
else:
1405+
raise ex
14041406

14051407
else:
14061408
logger.debug(("%s found and can_resume is True or Node is a "

0 commit comments

Comments
 (0)