From e770efbc8b00f1551ea5a6dd278c9f92ce742091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Wed, 31 Aug 2022 21:19:17 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E4=BF=AE=E6=94=B9=E5=8F=91?= =?UTF-8?q?=E9=80=81=E9=94=99=E8=AF=AF=E6=97=B6=E5=9B=9E=E5=A4=8D=E7=9A=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/system/errorhandler.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/system/errorhandler.py b/plugins/system/errorhandler.py index b1898396..f9dd7c1c 100644 --- a/plugins/system/errorhandler.py +++ b/plugins/system/errorhandler.py @@ -76,9 +76,8 @@ async def error_handler(update: object, context: CallbackContext) -> None: Log.info(f"尝试通知用户 {effective_user.full_name}[{effective_user.id}] " f"在 {chat.full_name}[{chat.id}]" f"的 update_id[{update.update_id}] 错误信息") - text = f"派蒙这边发生了点问题无法处理!\n" \ - f"如果当前有对话请发送 /cancel 退出对话。\n" \ - f"错误信息为 {html.escape(str(context.error))}" + text = f"出错了呜呜呜 ~ 派蒙这边发生了点问题无法处理!\n" \ + f"如果当前有对话请发送 /cancel 退出对话。\n" await context.bot.send_message(message.chat_id, text, reply_markup=ReplyKeyboardRemove(), parse_mode=ParseMode.HTML) except BadRequest as exc: