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 17, 2024
1 parent 4eec984 commit 1dd8799
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def is_connected(self) -> bool:
# check if machine is active and on the network
for _ in range(_PING_COUNT):
# Assume connected if ping works
assert self._remote_ip_address is not None
if Ping.ping(self._remote_ip_address) == 0:
return True

Expand Down

0 comments on commit 1dd8799

Please sign in to comment.