This commit is contained in:
yumoqing 2024-04-28 13:27:32 +08:00
parent bba7f060ac
commit cf5cd792dc

View File

@ -5,6 +5,7 @@ import json
import codecs import codecs
from aiohttp import web from aiohttp import web
import aiohttp_cors import aiohttp_cors
from traceback import print_exc
from appPublic.sshx import SSHNode from appPublic.sshx import SSHNode
from .baseProcessor import BaseProcessor, PythonScriptProcessor from .baseProcessor import BaseProcessor, PythonScriptProcessor
@ -154,6 +155,7 @@ class WebsocketProcessor(PythonScriptProcessor):
await ws.prepare(request) await ws.prepare(request)
except Exception as e: except Exception as e:
print('--------except:', e, type(e)) print('--------except:', e, type(e))
print_exc()
raise e raise e
print(f'{request.path=}4') print(f'{request.path=}4')
ws_pool = WsPool(ws, request.path, request.app) ws_pool = WsPool(ws, request.path, request.app)