diff --git a/tools/donate-cpu-server.py b/tools/donate-cpu-server.py index 48a0acb14..32b7b44ed 100644 --- a/tools/donate-cpu-server.py +++ b/tools/donate-cpu-server.py @@ -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 diff --git a/tools/donate-cpu.py b/tools/donate-cpu.py index 117d1aa4f..55aec6415 100644 --- a/tools/donate-cpu.py +++ b/tools/donate-cpu.py @@ -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