Ensured the raffles do not get checked if there are none
This commit is contained in:
parent
8e227ea4a4
commit
4a46b0d8c7
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,9 @@ class Raffle:
|
|||
# If the raffle has ended, we'll pick a winner from the entrants
|
||||
raffles = await config.get_content('raffles')
|
||||
|
||||
if raffles is None:
|
||||
return
|
||||
|
||||
for raffle in raffles:
|
||||
server = self.bot.get_server(raffle['server_id'])
|
||||
|
||||
|
|
Loading…
Reference in a new issue