Python cleanup
This commit is contained in:
parent
c7880e2c8d
commit
829a373416
|
@ -144,7 +144,7 @@ if __name__ == "__main__":
|
||||||
connection, client_address = sock.accept()
|
connection, client_address = sock.accept()
|
||||||
try:
|
try:
|
||||||
cmd = connection.recv(128)
|
cmd = connection.recv(128)
|
||||||
except socket.error as e:
|
except socket.error:
|
||||||
continue
|
continue
|
||||||
if cmd.find('\n') < 1:
|
if cmd.find('\n') < 1:
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -150,7 +150,7 @@ def uploadResults(package, results):
|
||||||
try:
|
try:
|
||||||
sendAll(sock, 'write\n' + package + '\n' + results + '\nDONE')
|
sendAll(sock, 'write\n' + package + '\n' + results + '\nDONE')
|
||||||
sock.close()
|
sock.close()
|
||||||
except socket.error as e:
|
except socket.error:
|
||||||
pass
|
pass
|
||||||
return package
|
return package
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue