auto: ignore errors
This commit is contained in:
parent
37584dee99
commit
6530558d4a
@ -454,7 +454,7 @@ class WynncraftCog(commands.Cog):
|
|||||||
max_combat_lvl_class = None
|
max_combat_lvl_class = None
|
||||||
best_professions = dict.fromkeys(list(roles_professions.keys()), 0)
|
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"]))
|
await self._log("%s had empty data %s" % (member_name, r["data"]))
|
||||||
continue
|
continue
|
||||||
for cl in r["data"][0]["classes"]:
|
for cl in r["data"][0]["classes"]:
|
||||||
|
Loading…
Reference in New Issue
Block a user