Handle `deck["xp_spent"]` being None

This commit is contained in:
Adam Goldsmith 2022-04-02 11:57:35 -04:00
parent a018aeb1c3
commit 8904d521cd
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ class ArkhamDBUpdater(commands.Bot):
issues = []
if deck["xp"] is not None:
unspent_xp = deck["xp"] - deck["xp_spent"]
unspent_xp = deck["xp"] - (deck["xp_spent"] or 0)
if unspent_xp > 0:
issues.append(f"{unspent_xp} unspent XP")
if deck["problem"] is not None: