diff --git a/websockets/server.py b/websockets/server.py index aab6ebb5..26939f9f 100644 --- a/websockets/server.py +++ b/websockets/server.py @@ -72,14 +72,9 @@ def handler(self): # Then the response was already written. return - try: - yield from self.handshake( - response_headers, subprotocols=self.subprotocols, - extra_headers=self.extra_headers) - except ConnectionError as exc: - logger.debug( - "Connection error in opening handshake", exc_info=True) - raise + yield from self.handshake( + response_headers, subprotocols=self.subprotocols, + extra_headers=self.extra_headers) except Exception as exc: if self._is_server_shutting_down(exc): response = ('HTTP/1.1 503 Service Unavailable\r\n\r\n'