fix(makeprompt.py): add exception handling to channel retrieval and debug message when no premium channels are found

This commit is contained in:
Paillat
2023-05-05 13:56:04 +02:00
parent 565d0f2956
commit 82186386f7

View File

@@ -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)):