bit more debug

Kaveen Kumarasinghe 1 year ago
parent 1dbe109c43
commit bfec417161

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

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

Loading…
Cancel
Save