From 8491f02227c4f6b50d735cfb6ece2f353da80f3a Mon Sep 17 00:00:00 2001 From: phixxy Date: Wed, 24 Jan 2024 23:51:14 -0800 Subject: [PATCH] answer_question needed to return a value and now does even on error --- extensions/chatgpt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/chatgpt.py b/extensions/chatgpt.py index c708fdc..87b3d51 100644 --- a/extensions/chatgpt.py +++ b/extensions/chatgpt.py @@ -94,6 +94,7 @@ class ChatGPT(commands.Cog): except Exception as error: print("Error occurred in answer_question") + return "Error occurred in answer_question" @commands.command( description="Personality",