Skip to content

Commit

Permalink
Log traceback of unsuccessful feedback
Browse files Browse the repository at this point in the history
Probably not the best idea to be sending it to users?
  • Loading branch information
AbhijeetKrishnan committed Feb 18, 2024
1 parent b18bc50 commit f5713ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/heihachi/bot.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import datetime
import logging
import traceback
from typing import Any, Callable, Coroutine, List

import discord
Expand Down Expand Up @@ -144,7 +145,7 @@ async def _feedback_cmd(interaction: discord.Interaction["FrameDataBot"], messag
await feedback_channel.send(content=feedback_message, view=button.DoneButton(actioned_channel))
result = embed.get_success_embed("Feedback sent")
except Exception as e:
result = embed.get_error_embed(f"Feedback couldn't be sent, caused by: {str(e)}")
result = embed.get_error_embed(f"Feedback couldn't be sent, caused by: {traceback.format_exc()}")

await interaction.response.send_message(embed=result, ephemeral=False)
else:
Expand Down

0 comments on commit f5713ca

Please sign in to comment.