auto: ignore errors

This commit is contained in:
Amazed 2020-09-25 12:50:25 +02:00
parent 37584dee99
commit 6530558d4a

View File

@ -454,7 +454,7 @@ class WynncraftCog(commands.Cog):
max_combat_lvl_class = None
best_professions = dict.fromkeys(list(roles_professions.keys()), 0)
if not r["data"]:
if "data" not in r or not r["data"]:
await self._log("%s had empty data %s" % (member_name, r["data"]))
continue
for cl in r["data"][0]["classes"]: