Skip to content

Commit

Permalink
add assert
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Nov 13, 2024
1 parent 87d13ee commit 8fb4eca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spinnman/processes/get_tags_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __handle_tag_info_response(
self, response: IPTagGetInfoResponse) -> None:
self._tag_info = response

def __handle_get_tag_response(self, tag: int, board_address: Optional[str],
def __handle_get_tag_response(self, tag: int, board_address: str,
response: IPTagGetResponse) -> None:
if response.in_use:
ip = response.ip_address
Expand Down Expand Up @@ -82,6 +82,8 @@ def get_tags(self, connection: SCAMPConnection) -> List[AbstractTag]:
n_tags = self._tag_info.pool_size + self._tag_info.fixed_size
self._tags = [None] * n_tags
with self._collect_responses():
board_address = connection.remote_ip_address
assert board_address is not None
for tag in range(n_tags):
self._send_request(IPTagGet(
connection.chip_x, connection.chip_y, tag),
Expand Down

0 comments on commit 8fb4eca

Please sign in to comment.