fix 3
This commit is contained in:
parent
9510b33adc
commit
a640a0c1dc
@ -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] = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user