From 0493368c192814308c6add78f16dc7e920320faf Mon Sep 17 00:00:00 2001 From: molanp <104612722+molanp@users.noreply.github.com> Date: Sun, 6 Jul 2025 12:18:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20platform.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zhenxun/utils/platform.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zhenxun/utils/platform.py b/zhenxun/utils/platform.py index c46fee3d..790aa230 100644 --- a/zhenxun/utils/platform.py +++ b/zhenxun/utils/platform.py @@ -534,11 +534,11 @@ class BroadcastEngine: try: bot = nonebot.get_bot() self.bot_list.append(bot) - logger.debug( + logger.warning( f"广播任务未传入Bot对象,使用默认Bot {bot.self_id}", log_cmd ) - except Exception: - raise ValueError("当前没有可用的Bot对象...", log_cmd) + except Exception as e: + raise ValueError("当前没有可用的Bot对象...", log_cmd) from e async def call_check(self, bot: Bot, group_id: str) -> bool: """运行发送检测函数