Don't fail when next_deck is not set on a deck

This commit is contained in:
Adam Goldsmith 2022-09-10 23:21:16 -04:00
parent 1ef48c6555
commit 7dbcc0f827
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class ArkhamDBClient:
self.origin + f"/api/public/deck/{next_deck_id}.json"
) as resp:
deck = await resp.json()
next_deck_id = deck["next_deck"]
next_deck_id = deck.get("next_deck")
return deck