From a640a0c1dc3bd1b65e228542978d68b00ff14a30 Mon Sep 17 00:00:00 2001 From: Hipstercat Date: Tue, 1 Sep 2020 00:07:20 +0200 Subject: [PATCH] fix 3 --- cogs/wynncraft/wynncraftcog.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cogs/wynncraft/wynncraftcog.py b/cogs/wynncraft/wynncraftcog.py index e137d28..b70be5b 100644 --- a/cogs/wynncraft/wynncraftcog.py +++ b/cogs/wynncraft/wynncraftcog.py @@ -108,6 +108,9 @@ class WynncraftCog(commands.Cog): r = requests.get("https://api.wynncraft.com/v2/player/%s/stats" % member_name).json() 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"]: if guild_id not in last_status: last_status[guild_id] = {}