Skip to content

Commit

Permalink
fix: allow dist2wheel to handle missing field
Browse files Browse the repository at this point in the history
Allow `dist2wheel.py` to better handle missing extra field
on the internal goreleaser build artifact.

Fixes: #193
  • Loading branch information
retr0h committed May 6, 2024
1 parent bc9dcdb commit 7f81795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/dist2wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def create_all(self):

# Burn a pass through the list to steal some useful bits from the Brew config
for artifact in self.artifacts:
if "BrewConfig" in artifact["extra"]:
if artifact["type"] == "Brew Tap":
self.description = artifact["extra"]["BrewConfig"]["description"]
self.license = artifact["extra"]["BrewConfig"]["license"]

Expand Down

0 comments on commit 7f81795

Please sign in to comment.