From 5e4ba563cbad2c96ce505fc4500d0743ccba7d3e Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sat, 1 Feb 2025 14:29:00 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=BC=B1=E5=8C=96=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=8A=A5=E9=94=99=20#267?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/zip_updator.py | 1 - astrbot/dashboard/routes/update.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/astrbot/core/zip_updator.py b/astrbot/core/zip_updator.py index 39df1c3da..beb4dbb6d 100644 --- a/astrbot/core/zip_updator.py +++ b/astrbot/core/zip_updator.py @@ -39,7 +39,6 @@ class RepoZipUpdator(): else: ret = self.github_api_release_parser(result) except BaseException: - logger.error("解析版本信息失败") raise Exception("解析版本信息失败") return ret diff --git a/astrbot/dashboard/routes/update.py b/astrbot/dashboard/routes/update.py index 788eca48c..d5e06e652 100644 --- a/astrbot/dashboard/routes/update.py +++ b/astrbot/dashboard/routes/update.py @@ -44,7 +44,7 @@ class UpdateRoute(Route): } ).__dict__ except Exception as e: - logger.error(traceback.format_exc()) + logger.warning(f"检查更新失败: {str(e)} (不影响除项目更新外的正常使用)") return Response().error(e.__str__()).__dict__ async def update_project(self):