diff --git a/scripts/publish/test_publish.py b/scripts/publish/test_publish.py index c2c35fe90..a9dfcd49c 100644 --- a/scripts/publish/test_publish.py +++ b/scripts/publish/test_publish.py @@ -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)