🐛 Fix Exception Handler

This commit is contained in:
洛水居室 2023-03-17 08:31:31 +08:00
parent 27e1b16ef4
commit 51c01268fa
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -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 = "气死我了!怎么有人喜欢发一个命令就秒删了!"