🐛 修复通知无法发送的问题

This commit is contained in:
洛水居室 2022-10-21 20:31:58 +08:00
parent ab1c490a13
commit 7c34167ff4
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -35,7 +35,7 @@ class ErrorHandler(Plugin):
logger.error("处理函数时发生异常") logger.error("处理函数时发生异常")
logger.exception(context.error, exc_info=(type(context.error), context.error, context.error.__traceback__)) logger.exception(context.error, exc_info=(type(context.error), context.error, context.error.__traceback__))
if notice_chat_id: if not notice_chat_id:
return return
tb_list = traceback.format_exception(None, context.error, context.error.__traceback__) tb_list = traceback.format_exception(None, context.error, context.error.__traceback__)