Fix batch string sometimes being null when cards are missing data

This commit is contained in:
Henry 2020-10-23 20:32:34 +01:00
parent 9064590ad7
commit 86de89fda9

View file

@ -57,7 +57,7 @@ class Card:
extra = kwargs.get("category")
self.anime = extra[0]
self.batch = extra[3]
self.batch = extra[-1]
except IndexError:
pass