Skip to content

Commit 72c5922

Browse files
committed
add a finally statement in _node_runner
1 parent 60f7630 commit 72c5922

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/pipeline/engine/nodes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,8 @@ def _node_runner(self, nodes, updatehash=False):
11511151
if str2bool(self.config['execution']['stop_on_first_crash']):
11521152
self._result = node.result
11531153
raise
1154-
yield i, node, err
1154+
finally:
1155+
yield i, node, err
11551156

11561157
def _collate_results(self, nodes):
11571158
self._result = InterfaceResult(interface=[], runtime=[],

0 commit comments

Comments
 (0)