Skip to content

Commit d8a7d43

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0534715 commit d8a7d43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

voila/tornado/kernel_websocket_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
JUPYTER_SERVER_2 = False
2020

21+
2122
def read_header_from_binary_message(ws_msg: bytes) -> Optional[Dict]:
2223
"""Read message header using the v1 protocol."""
2324

@@ -32,11 +33,10 @@ def read_header_from_binary_message(ws_msg: bytes) -> Optional[Dict]:
3233
except Exception:
3334
return
3435

36+
3537
if JUPYTER_SERVER_2:
3638
SUPPORTED_SUBPROTOCOL = ["v1.kernel.websocket.jupyter.org"]
3739

38-
39-
4040
class VoilaKernelWebsocketHandler(WebsocketHandler):
4141

4242
_ALL_EXECUTION_DATA = {}

0 commit comments

Comments
 (0)