Fix terminals with Tornado 3

The websocket handler auth checking was calling clear_cookie(), which
threw an error because it doesn't make sense for Websockets. It doesn't
seem important, and we silence it in our other websocket handlers, so
silencing it here too.
This commit is contained in:
Thomas Kluyver 2014-10-30 18:38:31 -07:00
parent 965102ba60
commit ce14f905e0

View File

@ -32,6 +32,10 @@ class TermSocket(terminado.TermSocket, IPythonHandler):
# tornado 3 has no get, will raise 405
if tornado.version_info >= (4,):
return super(TermSocket, self).get(*args, **kwargs)
def clear_cookie(self, *args, **kwargs):
"""meaningless for websockets"""
pass
def open(self, *args, **kwargs):
if tornado.version_info < (4,):