diff options
| author | 2020-04-09 15:23:26 +0200 | |
|---|---|---|
| committer | 2020-04-09 20:28:09 +0200 | |
| commit | 221426d91fa1db5f334562ac0af52d93bbe7ab10 (patch) | |
| tree | 9be98b52cf4e83b8cd7cc2dca960cdf4920193bd | |
| parent | Move permissions reset up. (diff) | |
Suppress errors when resetting permissions.
| -rw-r--r-- | bot/cogs/help_channels.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py index f53f7a7ba..a6fa05d90 100644 --- a/bot/cogs/help_channels.py +++ b/bot/cogs/help_channels.py @@ -214,7 +214,8 @@ class HelpChannels(Scheduler, commands.Cog): log.trace("Deleting dormant invokation message.") await ctx.message.delete() - await self.reset_claimant_send_permission(ctx.channel) + with suppress(discord.errors.HTTPException, discord.errors.NotFound): + await self.reset_claimant_send_permission(ctx.channel) self.cancel_task(ctx.channel.id) await self.move_to_dormant(ctx.channel) |