Skip to content

Commit

Permalink
raise from
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Aug 14, 2023
1 parent a86bd77 commit fdd3b2c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spinnman/transceiver/virtual5Transceiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ def _boot_board(self, extra_boot_values=None):
def read_memory(self, x, y, base_address, length, cpu=0):
try:
return super().read_memory(x, y, base_address, length, cpu)
except SpinnmanIOException:
except SpinnmanIOException as exc:
if (x == y == 255 and base_address == 4110450434):
return bytearray(b'\x08\x08')
raise NotImplementedError(
f"Unexpected {x=} {y=} {base_address=}, {length=} {cpu=}")
f"Unexpected {x=} {y=} {base_address=}, {length=} {cpu=}") \
from exc

@overrides(Version5Transceiver._get_scamp_version)
def _get_scamp_version(
Expand Down

0 comments on commit fdd3b2c

Please sign in to comment.