1
0
Fork 0
mirror of synced 2024-05-18 19:42:28 +12:00

Continue on the correct loop when server is None

This commit is contained in:
Phxntxm 2017-07-23 18:48:46 -05:00
parent 755d7cde06
commit 6e4c4703c2

View file

@ -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'])