From bfec41716183cb146a186328910f91751ef930b2 Mon Sep 17 00:00:00 2001 From: Kaveen Kumarasinghe Date: Sun, 18 Dec 2022 22:13:05 -0500 Subject: [PATCH] bit more debug --- cogs/gpt_3_commands_and_converser.py | 2 ++ main.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cogs/gpt_3_commands_and_converser.py b/cogs/gpt_3_commands_and_converser.py index 3f967f5..6dd95c4 100644 --- a/cogs/gpt_3_commands_and_converser.py +++ b/cogs/gpt_3_commands_and_converser.py @@ -171,6 +171,7 @@ class GPT3ComCon(commands.Cog, name="GPT3ComCon"): await thread.edit(locked=True) await thread.edit(name="Closed-GPT") except: + traceback.print_exc() pass async def send_help_text(self, message): @@ -333,6 +334,7 @@ class GPT3ComCon(commands.Cog, name="GPT3ComCon"): await self.queue_debug_message(debug_message, message, debug_channel) except Exception as e: print(e) + traceback.print_exc() await self.message_queue.put( Message("Error sending debug message: " + str(e), debug_channel) ) diff --git a/main.py b/main.py index e171a20..e53bbaf 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,6 @@ import asyncio import sys +import traceback import discord from discord.ext import commands @@ -80,6 +81,7 @@ if __name__ == "__main__": print("Caught keyboard interrupt, killing and removing PID") os.remove(PID_FILE) except Exception as e: + traceback.print_exc() print(str(e)) print("Removing PID file") os.remove(PID_FILE)