aboutsummaryrefslogtreecommitdiff
path: root/discord/ext
diff options
context:
space:
mode:
Diffstat (limited to 'discord/ext')
-rw-r--r--discord/ext/commands/core.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index bcf2cd8a..8e28159d 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -260,15 +260,15 @@ class Command:
elif isinstance(converter, converters.Converter):
ret = await converter.convert(ctx, argument)
return ret
- except CommandError as e:
- raise e
+ except CommandError:
+ raise
except Exception as e:
raise ConversionError(converter, e) from e
try:
return converter(argument)
- except CommandError as e:
- raise e
+ except CommandError:
+ raise
except Exception as e:
try:
name = converter.__name__
@@ -363,7 +363,7 @@ class Command:
argument = quoted_word(view)
try:
value = await self.do_conversion(ctx, converter, argument, param)
- except CommandError as e:
+ except CommandError:
if not result:
if required:
raise