Skip to content

Commit 85afb98

Browse files
committed
Merge pull request #558 from satra/fix/batch
fix: check if output directory exists before determining results file lo...
2 parents 4f773ea + 3faf943 commit 85afb98

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)