mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-16 12:02:16 +00:00
🐛 Fix Exception Handler
This commit is contained in:
parent
27e1b16ef4
commit
51c01268fa
@ -141,6 +141,7 @@ class ErrorHandler(Plugin):
|
|||||||
if isinstance(context.error, TimedOut):
|
if isinstance(context.error, TimedOut):
|
||||||
# notice = self.ERROR_MSG_PREFIX + " 连接 telegram 服务器超时"
|
# notice = self.ERROR_MSG_PREFIX + " 连接 telegram 服务器超时"
|
||||||
logger.error("连接 telegram 服务器超时 [%s]", repr(context.error))
|
logger.error("连接 telegram 服务器超时 [%s]", repr(context.error))
|
||||||
|
raise ApplicationHandlerStop
|
||||||
elif isinstance(context.error, BadRequest):
|
elif isinstance(context.error, BadRequest):
|
||||||
if "Replied message not found" in context.error.message:
|
if "Replied message not found" in context.error.message:
|
||||||
notice = "气死我了!怎么有人喜欢发一个命令就秒删了!"
|
notice = "气死我了!怎么有人喜欢发一个命令就秒删了!"
|
||||||
|
Loading…
Reference in New Issue
Block a user