From 9f9b593f8d1861ae4c888e08c61d1060c38bdb50 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 11 May 2001 18:28:54 +0000 Subject: .getsockopt() and .setsockopt() can only raise socket.error, so only catch that specific exception. --- Lib/asyncore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/asyncore.py b/Lib/asyncore.py index 4411048..07f7892 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -266,7 +266,7 @@ class dispatcher: socket.SOL_SOCKET, socket.SO_REUSEADDR, self.socket.getsockopt (socket.SOL_SOCKET, socket.SO_REUSEADDR) | 1 ) - except: + except socket.error: pass # ================================================== -- cgit v0.12