Skip to content

Commit

Permalink
Try this
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed May 27, 2022
1 parent 9416d13 commit f587c69
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions spinnman/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,17 +286,23 @@ class SpinnmanGroupedProcessException(SpinnmanException):
def __init__(self, error_requests, exceptions, tracebacks, connections,
machine):
problem = "Exceptions found were:\n"
for exception, description in _Group.group_exceptions(
error_requests, exceptions, tracebacks, connections,
machine):
for error_request, exception, trace_back, connection in zip(
error_requests, exceptions, tracebacks, connections):
sdp_header = error_request.sdp_header
phys_p = get_physical_cpu_id(machine, sdp_header)
location = "board {} with ethernet chip {}:{} [{}:{}:{}{}]".format(
connection.remote_ip_address, connection.chip_x,
connection.chip_y, sdp_header.destination_chip_x,
sdp_header.destination_chip_y,
sdp_header.destination_cpu, phys_p)
problem += \
" Received exception class: {}\n" \
" With message {}\n" \
" When sending to {}\n" \
" Stack trace: {}\n".format(
exception.__class__.__name__, str(exception),
description.chip_core,
traceback.format_tb(description.trace_back))
location,
traceback.format_tb(trace_back))
super().__init__(problem)


Expand Down

0 comments on commit f587c69

Please sign in to comment.