Skip to content

Commit

Permalink
fix: empty depot crash
Browse files Browse the repository at this point in the history
  • Loading branch information
imLinguin committed Nov 21, 2024
1 parent 53964bd commit 8d9dd59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gogdl/dl/managers/v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def get_download_size(self):
for depot in repository["depots"]:
if depot["dependencyId"] in self.manifest.dependencies_ids:
if not depot["executable"]["path"].startswith("__redist"):
size_data[self.game_id]['*']["download_size"] += depot["compressedSize"]
size_data[self.game_id]['*']["disk_size"] += depot["size"]
size_data[self.game_id]['*']["download_size"] += depot["compressedSize"] or 0
size_data[self.game_id]['*']["disk_size"] += depot["size"] or 0

available_branches = set([build["branch"] for build in self.builds["items"] if build["branch"]])
available_branches_list = [None] + list(available_branches)
Expand Down

0 comments on commit 8d9dd59

Please sign in to comment.