From 82186386f714a1c8f186efa54d6c2b74a692588f Mon Sep 17 00:00:00 2001 From: Paillat Date: Fri, 5 May 2023 13:56:04 +0200 Subject: [PATCH] fix(makeprompt.py): add exception handling to channel retrieval and debug message when no premium channels are found --- code/makeprompt.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/makeprompt.py b/code/makeprompt.py index e66d97c..0a54510 100644 --- a/code/makeprompt.py +++ b/code/makeprompt.py @@ -251,9 +251,11 @@ async def chat_process(self, message): # we use the i variable to get the channel id try: channels.append(str(channels_data[i])) - except: + except Exception as e: + raise e pass - except: + except Exception as e: + raise e debug("No premium channels found for this guild") if (await need_ignore_message(self.bot, data_dict, message, guild_data, original_message, channels)):