Skip to content

Commit 129337a

Browse files
authored
WebsocketHandler.get is async
As of Tornado v6.0.2 some methods were converted to be async/await capable. See commit: tornadoweb/tornado@e69becb
1 parent 5725b41 commit 129337a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

jupyter_server_proxy/websocket.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ def undisallow(*args2, **kwargs2):
8585
async def get(self, *args, **kwargs):
8686
if self.request.headers.get("Upgrade", "").lower() != 'websocket':
8787
return await self.http_get(*args, **kwargs)
88-
# super get is not async
89-
super().get(*args, **kwargs)
88+
await super().get(*args, **kwargs)
9089

9190

9291

0 commit comments

Comments
 (0)