From 45d4c8aefb9072d74ea89f133ea4f00d41f89f1e Mon Sep 17 00:00:00 2001 From: klonfish Date: Tue, 27 Dec 2016 01:37:39 +0100 Subject: [PATCH] Pokemon exception handling for sockets --- wii-pair/daemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wii-pair/daemon.py b/wii-pair/daemon.py index f53481b..990e275 100755 --- a/wii-pair/daemon.py +++ b/wii-pair/daemon.py @@ -184,7 +184,7 @@ try: for sock in rlist: try: m = sock.recv(1) - except ConnectionResetError: + except Exception: conns.remove(sock) continue @@ -203,7 +203,7 @@ try: try: sock.send(r) - except ConnectionResetError: + except Exception: conns.remove(sock) continue