From: Doug Vargas Date: Fri, 24 Feb 2017 20:36:53 +0000 (-0800) Subject: websocket protocol callback error handling uses getattr instead of direct attr access X-Git-Tag: v4.5.0~31^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1964%2Fhead;p=thirdparty%2Ftornado.git websocket protocol callback error handling uses getattr instead of direct attr access --- diff --git a/tornado/websocket.py b/tornado/websocket.py index 543cc29bc..d87ffb31d 100644 --- a/tornado/websocket.py +++ b/tornado/websocket.py @@ -426,7 +426,7 @@ class WebSocketProtocol(object): callback(*args, **kwargs) except Exception: app_log.error("Uncaught exception in %s", - self.request.path, exc_info=True) + getattr(self.request, 'path', None), exc_info=True) self._abort() def on_connection_close(self):