From a413dd503925263785e5fb59e948e450e129535c Mon Sep 17 00:00:00 2001 From: Paillat Date: Mon, 6 Mar 2023 23:01:27 +0100 Subject: [PATCH] Update makeprompt.py --- code/makeprompt.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/makeprompt.py b/code/makeprompt.py index 203979f..a870afa 100644 --- a/code/makeprompt.py +++ b/code/makeprompt.py @@ -47,7 +47,10 @@ async def chat_process(self, message): try: cp.execute("SELECT * FROM channels WHERE guild_id = ?", (message.guild.id,)) # get the channels in the premium database if premium: channels = cp.fetchone()[1:] # if the guild is premium, add the channels to the channels list - except: channels = [] # if the guild is not premium, the channels list is empty + debug("Premium channels: "+str(channels)) + except: + debug("Error while getting premium channels") + channels = [] # if the guild is not premium, the channels list is empty if api_key is None: return # if the api key is not set, return