Commit 9f9b593f authored by Fred Drake's avatar Fred Drake

<socket>.getsockopt() and <socket>.setsockopt() can only raise socket.error,

so only catch that specific exception.
parent c79f3d0d
......@@ -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
# ==================================================
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment