Skip to content

Commit 6643784

Browse files
committed
[commands] Clarify Converter.convert exception raising
1 parent 3a80636 commit 6643784

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

discord/ext/commands/converter.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ async def convert(self, ctx: Context[BotT], argument: str) -> T_co:
126126
raise a :exc:`.CommandError` derived exception as it will
127127
properly propagate to the error handlers.
128128
129+
Note that if this method is called manually, :exc:`Exception`
130+
should be caught to handle the cases where a subclass does
131+
not explicitly inherit from :exc:`.CommandError`.
132+
129133
Parameters
130134
-----------
131135
ctx: :class:`.Context`

0 commit comments

Comments
 (0)