This commit is contained in:
shenjack 2023-10-04 16:44:08 +08:00
parent bc42df2472
commit 78b24f0689
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -189,7 +189,7 @@ async def add_message(data: Dict[str, Any]):
evals: str = data.get('message').get('content')[2:] evals: str = data.get('message').get('content')[2:]
try: try:
result = await asyncio.gather(asyncio.to_thread(safe_eval, evals)) result = await asyncio.to_thread(safe_eval, evals)
except asyncio.TimeoutError: except asyncio.TimeoutError:
result = f'{evals}\n超时' result = f'{evals}\n超时'
reply = ReplyMessage(id=data['message']['_id']) reply = ReplyMessage(id=data['message']['_id'])