From 7c34167ff458134d1a38ceef1f623c3d86f2379d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Fri, 21 Oct 2022 20:31:58 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E6=97=A0=E6=B3=95=E5=8F=91=E9=80=81=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/system/errorhandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/system/errorhandler.py b/plugins/system/errorhandler.py index 998fa187..518d1c37 100644 --- a/plugins/system/errorhandler.py +++ b/plugins/system/errorhandler.py @@ -35,7 +35,7 @@ class ErrorHandler(Plugin): logger.error("处理函数时发生异常") logger.exception(context.error, exc_info=(type(context.error), context.error, context.error.__traceback__)) - if notice_chat_id: + if not notice_chat_id: return tb_list = traceback.format_exception(None, context.error, context.error.__traceback__)