From 8a356a49924eb13f972701b2c2281593d61b7ebb Mon Sep 17 00:00:00 2001 From: Satrajit Ghosh Date: Sun, 5 Jan 2020 09:34:35 -0500 Subject: [PATCH] fix: lack of result file raises internal error. closes #3088 --- nipype/pipeline/plugins/multiproc.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nipype/pipeline/plugins/multiproc.py b/nipype/pipeline/plugins/multiproc.py index dc950385b1..83d5d2a2af 100644 --- a/nipype/pipeline/plugins/multiproc.py +++ b/nipype/pipeline/plugins/multiproc.py @@ -67,9 +67,12 @@ def run_node(node, updatehash, taskid): result["result"] = node.run(updatehash=updatehash) except: # noqa: E722, intendedly catch all here result["traceback"] = format_exception(*sys.exc_info()) - result["result"] = node.result + try: + result["result"] = node.result + except FileNotFoundError: + result["result"] = None - # Return the result dictionary + # Return the result dictionary return result