PR #78 address first comment

This commit is contained in:
64Core 2023-03-29 23:06:52 -05:00
parent d2f4c8616b
commit 82cda72abd

View file

@ -65,7 +65,7 @@ class Game:
)
j = r.json()
# This converts a null j.uploads into an empty dictionary and uses the safer .get accessor
if j.get("uploads") is None:
if "uploads" in j:
j.update({"uploads": []})
for uploads in j.get("uploads"):
self.downloads.append(uploads)