From 71a9512888f3e02d95e7f332bbb507b360d4c2bc Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sun, 9 Apr 2017 21:13:34 -0500 Subject: [PATCH] Catch when a raffle is running in a server the bot is no longer in --- cogs/raffle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/raffle.py b/cogs/raffle.py index aa7c1bc..c2674bb 100644 --- a/cogs/raffle.py +++ b/cogs/raffle.py @@ -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()