Skip to content

Commit

Permalink
ignore missing info/files file
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Nov 21, 2023
1 parent 76f3fda commit e92edf3
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:
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 e92edf3

Please sign in to comment.