From f9067de19f992f5f080361802a925b9891f2c28e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 24 Aug 2020 21:05:10 +0100 Subject: [PATCH] Simplify --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 823e5465..164a60a6 100644 --- a/daemon.py +++ b/daemon.py @@ -8881,7 +8881,7 @@ class EpicyonServer(ThreadingHTTPServer): def handle_error(self, request, client_address): # surpress connection reset errors cls, e = sys.exc_info()[:2] - if cls is socket.error or cls is ConnectionResetError: + if cls is ConnectionResetError: print('ERROR: ' + str(cls) + ", " + str(e)) pass else: