mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-25 18:04:10 +00:00
🐛 修复通知无法发送的问题
This commit is contained in:
parent
ab1c490a13
commit
7c34167ff4
@ -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__)
|
||||
|
Loading…
Reference in New Issue
Block a user