Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
aignas committed May 31, 2024
1 parent 38666b0 commit a28c081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/private/parse_requirements_add_dists.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a28c081

Please sign in to comment.