Skip to content

Commit 7f81795

Browse files
committed
fix: allow dist2wheel to handle missing field
Allow `dist2wheel.py` to better handle missing extra field on the internal goreleaser build artifact. Fixes: #193
1 parent bc9dcdb commit 7f81795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/dist2wheel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def create_all(self):
6666

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

0 commit comments

Comments
 (0)