From 51c01268faa3b904fa1a9b793f7b9939d0614e60 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, 17 Mar 2023 08:31:31 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20Exception=20Handler?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/system/errorhandler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/system/errorhandler.py b/plugins/system/errorhandler.py index ed7161e..7e73a6e 100644 --- a/plugins/system/errorhandler.py +++ b/plugins/system/errorhandler.py @@ -141,6 +141,7 @@ class ErrorHandler(Plugin): if isinstance(context.error, TimedOut): # notice = self.ERROR_MSG_PREFIX + " 连接 telegram 服务器超时" logger.error("连接 telegram 服务器超时 [%s]", repr(context.error)) + raise ApplicationHandlerStop elif isinstance(context.error, BadRequest): if "Replied message not found" in context.error.message: notice = "气死我了!怎么有人喜欢发一个命令就秒删了!"