Skip to content

Commit

Permalink
🐛 修复是否使用 msgpack 的判断错误 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 authored Mar 12, 2023
1 parent 561ef42 commit 80a3949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nonebot_plugin_all4one/onebotimpl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ async def _ws_recv(self, middleware: Middleware, websocket: WebSocket) -> None:
"data": None,
"message": str(e),
}
await websocket.send(encode_data(resp, isinstance(raw_data, str)))
await websocket.send(encode_data(resp, isinstance(raw_data, bytes)))
except WebSocketClosed as e:
logger.opt(colors=True).warning(
f"WebSocket for Bot {escape_tag(middleware.self_id)} closed by peer"
Expand Down

0 comments on commit 80a3949

Please sign in to comment.