<socket>.getsockopt() and <socket>.setsockopt() can only raise socket.error,
so only catch that specific exception.
1 file changed