From a28c08128d1225d83595612fcabdadbaababdbba Mon Sep 17 00:00:00 2001 From: aignas <240938+aignas@users.noreply.github.com> Date: Fri, 31 May 2024 14:38:42 +0900 Subject: [PATCH] fixup --- python/private/parse_requirements_add_dists.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/private/parse_requirements_add_dists.bzl b/python/private/parse_requirements_add_dists.bzl index a1ae180a9f..aa7a99ee55 100644 --- a/python/private/parse_requirements_add_dists.bzl +++ b/python/private/parse_requirements_add_dists.bzl @@ -66,7 +66,7 @@ def parse_requirements_add_dists( # # See https://packaging.python.org/en/latest/specifications/simple-repository-api/#adding-yank-support-to-the-simple-api yanked = {} - for dist in whls + [sdist]: + for dist in whls + ([sdist] if sdist else []): if dist.yanked: yanked.setdefault(dist.yanked, []).append(dist.filename) if yanked: