Skip to content

Commit

Permalink
feat: 无法获取插件版本时跳过测试
Browse files Browse the repository at this point in the history
  • Loading branch information
BigOrangeQWQ committed Aug 27, 2024
1 parent 51d137b commit 949be60
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils/store_test/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 949be60

Please sign in to comment.