mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
fix(makeprompt.py): add exception handling to channel retrieval and debug message when no premium channels are found
This commit is contained in:
@@ -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)):
|
||||
|
||||
Reference in New Issue
Block a user