Skip to content

Commit b21bca6

Browse files
committed
Added traceback crash reporting
1 parent d83d849 commit b21bca6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nipype/pipeline/plugins/multiproc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ def _send_procs_to_workers(self, updatehash=False, graph=None):
238238
try:
239239
num_subnodes = self.procs[jobid].num_subnodes()
240240
except Exception:
241+
etype, eval, etr = sys.exc_info()
242+
traceback = format_exception(etype, eval, etr)
243+
report_crash(self.procs[jobid], traceback=traceback)
241244
self._clean_queue(jobid, graph)
242245
self.proc_pending[jobid] = False
243246
continue

0 commit comments

Comments
 (0)