[commands] raise ConversionError on Converter error

This assumes that a Converter class raising non-CommandError
is a programmer error. Makes this type of error easier to
disambiguate from a generic BadArgument.
This commit is contained in:
khazhyk authored and Rapptz committed 2018-07-20 04:14:20 -04:00
1 parent 87d9eefdef
commit 2321ae8d97
3 files changed
+47 -26

No files matched your search

+3
View File
@@ -187,6 +187,9 @@ Errors
.. autoexception:: discord.ext.commands.CommandError
:members:
.. autoexception:: discord.ext.commands.ConversionError
:members:
.. autoexception:: discord.ext.commands.MissingRequiredArgument
:members: