[commands] Clarify Converter.convert exception raising

This commit is contained in:
Rapptz 2024-07-05 15:11:35 -04:00
parent 3a80636029
commit 6643784d33

View File

@ -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`