Skip to content

Commit 8b3c8df

Browse files
committed
Use reference to err to avoid deletion in Py3.4
1 parent 3ed411b commit 8b3c8df

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
@@ -1154,7 +1154,8 @@ def _node_runner(self, nodes, updatehash=False):
11541154
err = None
11551155
try:
11561156
node.run(updatehash=updatehash)
1157-
except Exception as err:
1157+
except Exception as this_err:
1158+
err = this_err # save reference
11581159
if str2bool(self.config['execution']['stop_on_first_crash']):
11591160
self._result = node.result
11601161
raise

0 commit comments

Comments
 (0)