1
0
Fork 0
mirror of synced 2024-06-23 08:40:41 +12:00

Ensured the raffles do not get checked if there are none

This commit is contained in:
Phxntxm 2016-10-13 22:26:54 -05:00
parent 8e227ea4a4
commit 4a46b0d8c7

View file

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