mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
<socket>.getsockopt() and <socket>.setsockopt() can only raise socket.error,
so only catch that specific exception.
This commit is contained in:
parent
c79f3d0d42
commit
9f9b593f8d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
# ==================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue