From a1997266c548f6d620a4f4b43fc195313d5d7fe6 Mon Sep 17 00:00:00 2001 From: GaMeNu <98153342+GaMeNu@users.noreply.github.com> Date: Thu, 12 Oct 2023 12:09:08 +0300 Subject: [PATCH] v2.1.1 Permission error... fix...? --- cog_notificator.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cog_notificator.py b/cog_notificator.py index 97a8323..d8442d6 100644 --- a/cog_notificator.py +++ b/cog_notificator.py @@ -215,8 +215,9 @@ class Notificator(commands.Cog): continue try: await dc_ch.send(embeds=embed_list, view=self.hfc_button_view()) - except discord.errors.Forbidden: - self.log.warning(f'Failed to send alert in channel {channel}: No permission') + except BaseException as e: + self.log.warning(f'Failed to send alert in channel {channel}:\n' + f'{e}') @app_commands.command(name='register',