mirror of
https://github.com/Emersont1/itchio.git
synced 2026-03-11 08:54:39 +00:00
PR #78 address first comment
This commit is contained in:
parent
d2f4c8616b
commit
82cda72abd
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue