Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix(gateway): pass exception to on_disconnect hook warning

程凯b92e8792ea9b
diff --git a/jiuwenswarm/gateway/app_gateway.py b/jiuwenswarm/gateway/app_gateway.py
index 2bfeb8bb18..d0fbbaba2a 100644
--- a/jiuwenswarm/gateway/app_gateway.py
+++ b/jiuwenswarm/gateway/app_gateway.py
@@ -1255,7 +1255,8 @@ class GatewayServer(BaseWebChannel):
await result
except Exception as e: # pragma: no cover
logger.warning(
- "%s on_disconnect hook error: %s",
+ "on_disconnect hook error: %s",
+ e,
)
async def _handle_raw_message(self, ws: Any, raw: str, request_path: str, route: RouteConfig) -> None: