fix: Handle errors in AstrBotBootstrap gracefully

This commit is contained in:
Soulter
2024-08-17 15:01:55 +08:00
parent 8a58772911
commit 107214ac53
+2 -2
View File
@@ -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 \