Skip to content

Commit

Permalink
when WHEEL file is corrupted, set wheeldata to None instead of metada…
Browse files Browse the repository at this point in the history
…ta (#23)
  • Loading branch information
mboisson authored Jul 18, 2024
1 parent df530cc commit 5b62859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wheelfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,7 @@ def _read_distinfo(self):
wheeldata = self.zipfile.read(self._distinfo_path('WHEEL'))
self.wheeldata = WheelData.from_str(wheeldata.decode('utf-8'))
except Exception:
self.metadata = None
self.wheeldata = None

try:
record = self.zipfile.read(self._distinfo_path('RECORD'))
Expand Down

0 comments on commit 5b62859

Please sign in to comment.