From 845f25f72f3ec3f6c23f139d1aadc25636776c8b Mon Sep 17 00:00:00 2001 From: insert Date: Sun, 11 Aug 2024 14:08:37 -0400 Subject: [PATCH] Update --- speechbubble.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/speechbubble.py b/speechbubble.py index ae2a20f..b6967ca 100644 --- a/speechbubble.py +++ b/speechbubble.py @@ -112,8 +112,7 @@ class ApplicationModal(nextcord.ui.Modal): await interaction.send(f"<@{self.victim.id}> {interaction.user.name} proposes the following speech bubble for you:", embed=embed, view=ApplicationView(self.bot)) async def on_error(self, interaction: nextcord.Interaction, error: nextcord.DiscordException): - error = traceback.format_exception(type(error), error, error.__traceback__) - strerror = "".join(error) + error = traceback.format_exc() print(strerror, file=sys.stderr) message = f"```py\n{strerror[-1800:]}\n```\n Contact <@{self.bot.owner_id}> if the error persists" try: