Skip to content

Commit

Permalink
fix: ignore missing info/files file (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv authored Nov 22, 2023
1 parent 76f3fda commit cbc3914
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions quetz/condainfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,12 @@ def _load_jsons(self, tar):
self.paths = json.load(tar.extractfile("info/paths.json"))
except KeyError:
self.paths = {}
with tar.extractfile("info/files") as fp:
self.files = fp.readlines()

try:
with tar.extractfile("info/files") as fp:
self.files = fp.readlines()
except KeyError:
self.files = [p["_path"] for p in self.paths.get("paths", [])]

try:
exports_file = tar.extractfile("info/run_exports.json")
Expand Down

0 comments on commit cbc3914

Please sign in to comment.