This commit is contained in:
Amazed 2020-09-01 00:07:20 +02:00
parent 9510b33adc
commit a640a0c1dc

View File

@ -108,6 +108,9 @@ class WynncraftCog(commands.Cog):
r = requests.get("https://api.wynncraft.com/v2/player/%s/stats" % member_name).json() r = requests.get("https://api.wynncraft.com/v2/player/%s/stats" % member_name).json()
max_combat_lvl_class = None max_combat_lvl_class = None
if not r["data"]:
await self._log("%s had data %s" % (member_name, r["data"]))
continue
for cl in r["data"][0]["classes"]: for cl in r["data"][0]["classes"]:
if guild_id not in last_status: if guild_id not in last_status:
last_status[guild_id] = {} last_status[guild_id] = {}