From 88776d25f5690aa364299cdddbd6e277bc358d20 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 28 Apr 2024 13:14:24 +0800 Subject: [PATCH] bugfix --- ahserver/websocketProcessor.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ahserver/websocketProcessor.py b/ahserver/websocketProcessor.py index 2f85ca8..83c743b 100755 --- a/ahserver/websocketProcessor.py +++ b/ahserver/websocketProcessor.py @@ -150,7 +150,11 @@ class WebsocketProcessor(PythonScriptProcessor): print(f'{request.path=}2') ws = web.WebSocketResponse() print(f'{request.path=}3', ws.closed) - await ws.prepare(request) + try: + await ws.prepare(request) + except Exception as e: + print('--------except:', e) + raise e print(f'{request.path=}4') ws_pool = WsPool(ws, request.path, request.app) print(f'{request.path=}5')