diff options
author | Fred Drake <fdrake@acm.org> | 2001-05-11 18:28:54 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-05-11 18:28:54 (GMT) |
commit | 9f9b593f8d1861ae4c888e08c61d1060c38bdb50 (patch) | |
tree | 15b9d864776401b5bee6f23c3e9b4bbde399d751 | |
parent | c79f3d0d42b29723290f8741bb8a296ef1c61712 (diff) | |
download | cpython-9f9b593f8d1861ae4c888e08c61d1060c38bdb50.zip cpython-9f9b593f8d1861ae4c888e08c61d1060c38bdb50.tar.gz cpython-9f9b593f8d1861ae4c888e08c61d1060c38bdb50.tar.bz2 |
<socket>.getsockopt() and <socket>.setsockopt() can only raise socket.error,
so only catch that specific exception.
-rw-r--r-- | Lib/asyncore.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 # ================================================== |