1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Catch when a raffle is running in a server the bot is no longer in

This commit is contained in:
Phxntxm 2017-04-09 21:13:34 -05:00
parent f69b947cfb
commit 71a9512888

View file

@ -84,7 +84,7 @@ class Raffle:
channel = self.bot.get_channel(channel_id)
try:
await channel.send(fmt)
except discord.Forbidden:
except (discord.Forbidden, AttributeError):
pass
@commands.command()