Skip to content

Commit

Permalink
Allow no reply here
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed Oct 30, 2023
1 parent ebbcfc3 commit 387cd8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spinnman/messages/scp/impl/count_state_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ def __init__(self):
@overrides(AbstractSCPResponse.read_data_bytestring)
def read_data_bytestring(self, data: bytes, offset: int):
result = self.scp_response_header.result
if result != SCPResult.RC_OK:
# We can accept a no-reply response here; that could just mean
# that the count wasn't complete (but might be enough anyway)
if result != SCPResult.RC_OK and result != SCPResult.RC_P2P_NOREPLY:
raise SpinnmanUnexpectedResponseCodeException(
"CountState", "CMD_COUNT", result.name)
self._count = _ONE_WORD.unpack_from(data, offset)[0]
Expand Down

0 comments on commit 387cd8c

Please sign in to comment.