Skip to content

Commit

Permalink
assert not None
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Oct 22, 2024
1 parent d9cc16f commit a8a9c68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spinnman/transceiver/base_transceiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,7 @@ def set_ip_tag(self, ip_tag: IPTag, use_sender: bool = False):
for connection in connections:
# Convert the host string
host_string = ip_tag.ip_address
assert host_string is not None
if host_string in ("localhost", ".", "0.0.0.0"):
host_string = connection.local_ip_address
ip_string = socket.gethostbyname(host_string)
Expand Down

0 comments on commit a8a9c68

Please sign in to comment.