Continue on the correct loop when server is None
This commit is contained in:
parent
755d7cde06
commit
6e4c4703c2
|
@ -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'])
|
||||
|
||||
|
|
Loading…
Reference in a new issue