Fix Python 3.10 __or__ not working with transformers

Fixes #8214
This commit is contained in:
Rapptz
2022-07-30 04:43:41 -04:00
parent 11618cd1ba
commit 5527de688a
3 changed files with 5 additions and 2 deletions

View File

@ -142,7 +142,7 @@ class ConverterTransformer(app_commands.Transformer):
else:
return await converter().convert(ctx, value) # type: ignore
elif isinstance(converter, Converter):
return await converter.convert(ctx, value) # type: ignore
return await converter.convert(ctx, value)
except CommandError:
raise
except Exception as exc: