mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-02 16:23:29 +00:00
Make error handler in modal example more helpful
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user