Skip to content

How to get the Exception from discord.on_error() ? #9458

Closed Answered by Rapptz
rullinoiz asked this question in Q&A
Discussion options

You must be logged in to vote

You use sys.exc_info as documented:

For your custom exception you should derive CommandError instead so it goes to the appropriate events, as documented here.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rullinoiz
Comment options

Answer selected by rullinoiz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants