Python cleanup
This commit is contained in:
parent
c7880e2c8d
commit
829a373416
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue