From 949be6022f5c066afbd8641190c4075ca983d45e Mon Sep 17 00:00:00 2001 From: BigOrangeQWQ <2284086963@qq.com> Date: Tue, 27 Aug 2024 20:30:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E7=89=88=E6=9C=AC=E6=97=B6=E8=B7=B3=E8=BF=87?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/store_test/store.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/store_test/store.py b/src/utils/store_test/store.py index 16ee30f6..289ca9b4 100644 --- a/src/utils/store_test/store.py +++ b/src/utils/store_test/store.py @@ -69,7 +69,11 @@ def should_skip(self, key: str, force: bool = False) -> bool: return False # 如果插件为最新版本,则跳过测试 - latest_version = get_latest_version(previous_plugin.project_link) + try: + latest_version = get_latest_version(previous_plugin.project_link) + except ValueError as e: + click.echo(f"插件 {key} 获取最新版本失败:{e},跳过测试") + return False if latest_version == previous_result.version: click.echo(f"插件 {key} 为最新版本({latest_version}),跳过测试") return True