From 107214ac537bd72b83ae2b13906cc38ec803c076 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sat, 17 Aug 2024 15:01:55 +0800 Subject: [PATCH] fix: Handle errors in AstrBotBootstrap gracefully --- astrbot/bootstrap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/astrbot/bootstrap.py b/astrbot/bootstrap.py index 225ab08a9..36c0f010f 100644 --- a/astrbot/bootstrap.py +++ b/astrbot/bootstrap.py @@ -105,8 +105,8 @@ class AstrBotBootstrap(): return except Exception as e: logger.error(traceback.format_exc()) - logger.error(f"{task.get_name()} 任务发生错误,将在 5 秒后重试。") - await asyncio.sleep(5) + logger.error(f"{task.get_name()} 任务发生错误。") + return def load_llm(self): if 'openai' in self.config_helper.cached_config and \