Browse Source

[commands] Clarify Converter.convert exception raising

pull/10109/head
Rapptz 12 months ago
committed by dolfies
parent
commit
68212866d3
  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