From d8489cf46a6cea6e62a2dfba259a4c3cf93068a0 Mon Sep 17 00:00:00 2001 From: Hipstercat Date: Mon, 31 Aug 2020 23:59:10 +0200 Subject: [PATCH] fix 1 --- cogs/wynncraft/wynncraftcog.py | 2 ++ 1 file changed, 2 insertions(+) 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"]