Fixed networking
Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
parent
5d60b9c398
commit
579e6c4992
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ def send_status(name, status):
|
|||
try:
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
sock.connect((host, port))
|
||||
sock.send(name + " " + status)
|
||||
sock.send((name + " " + status).encode())
|
||||
sock.close()
|
||||
except IOError:
|
||||
print("Unable to send status. Aborting...")
|
||||
|
|
Loading…
Reference in a new issue