Fix for converter syntax not recognising custom IConverter objects

This commit is contained in:
Ben 2019-10-09 01:13:36 +01:00
parent 2e25f27f1f
commit b1b11e9f70

View File

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