From 829a373416f6b19328698a2941ff8b717ca1f55b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 25 Aug 2018 20:43:20 +0200 Subject: [PATCH] Python cleanup --- tools/donate-cpu-server.py | 2 +- tools/donate-cpu.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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