mirror of https://github.com/astral-sh/uv
Improve publish test error when no versions are found (#15594)
This commit is contained in:
parent
d3c5b3fba7
commit
a60312a9b8
|
|
@ -194,6 +194,10 @@ def get_latest_version(target: str, client: httpx.Client) -> Version:
|
|||
time.sleep(1)
|
||||
else:
|
||||
raise RuntimeError(f"Failed to fetch {url}") from error
|
||||
|
||||
if not versions:
|
||||
raise ValueError(f"No versions found for {target_config.project_name}")
|
||||
|
||||
return max(versions)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue