From 82cda72abdc2e51b57ff8b7d9ae984ddd413493b Mon Sep 17 00:00:00 2001 From: 64Core <64core@pm.me> Date: Wed, 29 Mar 2023 23:06:52 -0500 Subject: [PATCH] PR #78 address first comment --- itchiodl/game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itchiodl/game.py b/itchiodl/game.py index 0aa7885..f82f22f 100644 --- a/itchiodl/game.py +++ b/itchiodl/game.py @@ -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)