1
0
Fork 0
mirror of synced 2024-05-24 06:19:39 +12:00

Don't use defunct id

This commit is contained in:
Phxntxm 2017-07-23 14:59:23 -05:00
parent 7964be7adb
commit c782ad8727

View file

@ -38,11 +38,9 @@ class Raffle:
for r in raffle['raffles']:
title = r['title']
entrants = r['entrants']
raffle_id = r['id']
# Check to see if this cog can find the server in question
if server is None:
await self.bot.db.query(r.table('raffles').get(raffle_id).delete())
continue
now = pendulum.utcnow()