summaryrefslogtreecommitdiff
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-05-11 18:28:54 +0000
committerFred Drake <fdrake@acm.org>2001-05-11 18:28:54 +0000
commit9f9b593f8d1861ae4c888e08c61d1060c38bdb50 (patch)
tree15b9d864776401b5bee6f23c3e9b4bbde399d751 /Lib/asyncore.py
parentc79f3d0d42b29723290f8741bb8a296ef1c61712 (diff)
downloadcpython-git-9f9b593f8d1861ae4c888e08c61d1060c38bdb50.tar.gz
<socket>.getsockopt() and <socket>.setsockopt() can only raise socket.error,
so only catch that specific exception.
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r--Lib/asyncore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index 4411048c0b..07f789277f 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
# ==================================================