Fixed networking

Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
fly 2019-12-22 04:18:32 +00:00
parent 5d60b9c398
commit 579e6c4992

View file

@ -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...")