From 386ee4413afe0088819fde6b702b9fd0e97b046b Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 25 Jan 2024 22:12:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=89=E4=B8=80=E4=B8=AA=20sio.emit?= =?UTF-8?q?=20=E6=B2=A1=20awit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 2df13763..b3ebd35f 100644 --- a/main.py +++ b/main.py @@ -210,7 +210,7 @@ async def add_message(data: Dict[str, Any]): "https://bd.bangbang93.com/openbmclapi/metric/dashboard" ) as response: if not response.status == "200": - sio.emit( + await sio.emit( "sendMessage", reply_msg.to_content( f"请求数据失败\n{response.status}"