Handle deck["xp_spent"]
being None
This commit is contained in:
parent
a018aeb1c3
commit
8904d521cd
@ -98,7 +98,7 @@ class ArkhamDBUpdater(commands.Bot):
|
|||||||
|
|
||||||
issues = []
|
issues = []
|
||||||
if deck["xp"] is not None:
|
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:
|
if unspent_xp > 0:
|
||||||
issues.append(f"{unspent_xp} unspent XP")
|
issues.append(f"{unspent_xp} unspent XP")
|
||||||
if deck["problem"] is not None:
|
if deck["problem"] is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user