Skip to content

Commit

Permalink
[commands] Clarify Converter.convert exception raising
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Jul 5, 2024
1 parent 3a80636 commit 6643784
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions discord/ext/commands/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ async def convert(self, ctx: Context[BotT], argument: str) -> T_co:
raise a :exc:`.CommandError` derived exception as it will
properly propagate to the error handlers.
Note that if this method is called manually, :exc:`Exception`
should be caught to handle the cases where a subclass does
not explicitly inherit from :exc:`.CommandError`.
Parameters
-----------
ctx: :class:`.Context`
Expand Down

0 comments on commit 6643784

Please sign in to comment.