Skip to content

Commit 80a3949

Browse files
authored
🐛 修复是否使用 msgpack 的判断错误 (#16)
1 parent 561ef42 commit 80a3949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nonebot_plugin_all4one/onebotimpl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ async def _ws_recv(self, middleware: Middleware, websocket: WebSocket) -> None:
257257
"data": None,
258258
"message": str(e),
259259
}
260-
await websocket.send(encode_data(resp, isinstance(raw_data, str)))
260+
await websocket.send(encode_data(resp, isinstance(raw_data, bytes)))
261261
except WebSocketClosed as e:
262262
logger.opt(colors=True).warning(
263263
f"WebSocket for Bot {escape_tag(middleware.self_id)} closed by peer"

0 commit comments

Comments
 (0)