Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 9, 2024
1 parent d0daabb commit 22a1816
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion voila/tornado/execution_request_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from jupyter_server.base.handlers import JupyterHandler
from tornado.websocket import WebSocketHandler
from tornado.web import HTTPError

try:
JUPYTER_SERVER_2 = True
from jupyter_server.base.websocket import WebSocketMixin
Expand All @@ -17,6 +18,7 @@
import sys

if JUPYTER_SERVER_2:

class ExecutionRequestHandler(WebSocketMixin, WebSocketHandler, JupyterHandler):
_execution_data = {}

Expand Down Expand Up @@ -135,6 +137,8 @@ async def on_message(
def on_close(self) -> None:
if self._executor and self._executor.kc:
asyncio.create_task(ensure_async(self._executor.kc.stop_channels()))

else:
class ExecutionRequestHandler():

class ExecutionRequestHandler:
pass

0 comments on commit 22a1816

Please sign in to comment.