mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-21 22:58:05 +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):
|
||||
# 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 = "气死我了!怎么有人喜欢发一个命令就秒删了!"
|
||||
|
Loading…
Reference in New Issue
Block a user