From 78b24f06890e4adef1467d6bca9b149c5ef88914 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Wed, 4 Oct 2023 16:44:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ? --- connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect.py b/connect.py index 304d070..5292b9d 100644 --- a/connect.py +++ b/connect.py @@ -189,7 +189,7 @@ async def add_message(data: Dict[str, Any]): evals: str = data.get('message').get('content')[2:] try: - result = await asyncio.gather(asyncio.to_thread(safe_eval, evals)) + result = await asyncio.to_thread(safe_eval, evals) except asyncio.TimeoutError: result = f'{evals}\n超时' reply = ReplyMessage(id=data['message']['_id'])