mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-22 10:56:44 +00:00
Make error handler in modal example more helpful
This commit is contained in:
parent
de2349e707
commit
dd2125e6b6
@ -61,7 +61,7 @@ class Feedback(discord.ui.Modal, title='Feedback'):
|
|||||||
await interaction.response.send_message('Oops! Something went wrong.', ephemeral=True)
|
await interaction.response.send_message('Oops! Something went wrong.', ephemeral=True)
|
||||||
|
|
||||||
# Make sure we know what the error actually is
|
# Make sure we know what the error actually is
|
||||||
traceback.print_tb(error.__traceback__)
|
traceback.print_exception(type(error), error, error.__traceback__)
|
||||||
|
|
||||||
|
|
||||||
client = MyClient()
|
client = MyClient()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user