Skip to content

Commit 3faf943

Browse files
committed
fix: check if output directory exists before determining results file location. needs better reporting of the error.
1 parent 4f773ea commit 3faf943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/plugins/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def create_pyscript(node, updatehash=False, store_exception=True):
130130
except Exception, e:
131131
etype, eval, etr = sys.exc_info()
132132
traceback = format_exception(etype,eval,etr)
133-
if info is None:
133+
if info is None or not os.path.exists(info['node'].output_dir()):
134134
result = None
135135
resultsfile = os.path.join(batchdir, 'crashdump_%s.pklz')
136136
else:

0 commit comments

Comments
 (0)