Catch when a raffle is running in a server the bot is no longer in
This commit is contained in:
parent
f69b947cfb
commit
71a9512888
|
@ -84,7 +84,7 @@ class Raffle:
|
||||||
channel = self.bot.get_channel(channel_id)
|
channel = self.bot.get_channel(channel_id)
|
||||||
try:
|
try:
|
||||||
await channel.send(fmt)
|
await channel.send(fmt)
|
||||||
except discord.Forbidden:
|
except (discord.Forbidden, AttributeError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
|
|
Loading…
Reference in a new issue