diff --git a/cogs/wynncraft/wynncraftcog.py b/cogs/wynncraft/wynncraftcog.py index fd7806c..56e2052 100644 --- a/cogs/wynncraft/wynncraftcog.py +++ b/cogs/wynncraft/wynncraftcog.py @@ -99,6 +99,8 @@ class WynncraftCog(commands.Cog): await self._log("Loop id %s" % guild_id) try: guild_name = await self.config.guild(guild).guild_name() + if not guild_name: + continue r = requests.get("https://api.wynncraft.com/public_api.php?action=guildStats&command=%s" % guild_name).json() for member in r["members"]: member_name = member["name"]