Browse Source

[commands] Clarify Converter.convert exception raising

pull/9881/head
Rapptz 9 months ago
parent
commit
6643784d33
  1. 4
      discord/ext/commands/converter.py

4
discord/ext/commands/converter.py

@ -126,6 +126,10 @@ class Converter(Protocol[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`

Loading…
Cancel
Save