[commands] Make ConversionError have the original error as an attribute
This commit is contained in:
@ -239,7 +239,7 @@ class Command:
|
||||
except CommandError as e:
|
||||
raise e
|
||||
except Exception as e:
|
||||
raise ConversionError(converter) from e
|
||||
raise ConversionError(converter, e) from e
|
||||
|
||||
try:
|
||||
return converter(argument)
|
||||
|
Reference in New Issue
Block a user