Python cleanup

This commit is contained in:
Daniel Marjamäki 2018-08-25 20:43:20 +02:00
parent c7880e2c8d
commit 829a373416
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ if __name__ == "__main__":
connection, client_address = sock.accept()
try:
cmd = connection.recv(128)
except socket.error as e:
except socket.error:
continue
if cmd.find('\n') < 1:
continue

View File

@ -150,7 +150,7 @@ def uploadResults(package, results):
try:
sendAll(sock, 'write\n' + package + '\n' + results + '\nDONE')
sock.close()
except socket.error as e:
except socket.error:
pass
return package