From 6e4c4703c2ae5f38fb6923d50c5a017259626e6d Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sun, 23 Jul 2017 18:48:46 -0500 Subject: [PATCH] Continue on the correct loop when server is None --- cogs/raffle.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cogs/raffle.py b/cogs/raffle.py index 9cb59e0..3e9e55a 100644 --- a/cogs/raffle.py +++ b/cogs/raffle.py @@ -35,14 +35,14 @@ class Raffle: for raffle in raffles: server = self.bot.get_guild(int(raffle['server_id'])) + + # Check to see if this cog can find the server in question + if server is None: + continue for r in raffle['raffles']: title = r['title'] entrants = r['entrants'] - # Check to see if this cog can find the server in question - if server is None: - continue - now = pendulum.utcnow() expires = pendulum.parse(r['expires'])