Fix converter type check

This commit is contained in:
Ben 2020-05-26 00:56:00 +01:00
parent e60ea69b7e
commit d805de1dfb

View File

@ -472,8 +472,7 @@ def get_converter(component):
async def do_conversion(converter, ctx):
if inspect.isclass(converter):
if not isinstance(converter, IConverter) and issubclass(converter, IConverter):
if inspect.isclass(converter) and issubclass(converter, IConverter):
converter = converter()
if isinstance(converter, IConverter):
if asyncio.iscoroutinefunction(converter.convert):