From dd2125e6b652d5d2bcbf60dcd3a40b32aab60b31 Mon Sep 17 00:00:00 2001 From: sgtlaggy <8661717+sgtlaggy@users.noreply.github.com> Date: Sat, 14 Jan 2023 11:01:00 -0800 Subject: [PATCH] Make error handler in modal example more helpful --- examples/modals/basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/modals/basic.py b/examples/modals/basic.py index 564b56f83..edde8435b 100644 --- a/examples/modals/basic.py +++ b/examples/modals/basic.py @@ -61,7 +61,7 @@ class Feedback(discord.ui.Modal, title='Feedback'): await interaction.response.send_message('Oops! Something went wrong.', ephemeral=True) # Make sure we know what the error actually is - traceback.print_tb(error.__traceback__) + traceback.print_exception(type(error), error, error.__traceback__) client = MyClient()