[git fast commit] 03. Feb 2019 - 00:10:34

This commit is contained in:
Yannik Schmidt
2019-02-03 00:10:34 +01:00
parent f6a5e12607
commit 8726f60c60

View File

@@ -17,6 +17,7 @@ def listen():
Thread(target=t_listen,args=(conn,)).start();
def t_listen(conn):
while True:
try:
data = conn.recv(BUFFER_SIZE).decode('utf-8')
ret = NetworkParser.handleInput(data)
@@ -25,5 +26,5 @@ def t_listen(conn):
if type(ret) == str:
ret = ret.encode("utf-8")
conn.send(ret)
finally:
conn.close()
except Exception:
conn.send(b"Rating Backend Exception (503 Database not in sync)")