mirror of
https://github.com/solero/houdini.git
synced 2025-05-16 19:41:14 +00:00
Fix for converter syntax not recognising custom IConverter objects
This commit is contained in:
parent
2e25f27f1f
commit
b1b11e9f70
@ -421,7 +421,7 @@ def get_converter(component):
|
|||||||
|
|
||||||
|
|
||||||
async def do_conversion(converter, ctx):
|
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()
|
converter = converter()
|
||||||
if isinstance(converter, IConverter):
|
if isinstance(converter, IConverter):
|
||||||
if asyncio.iscoroutinefunction(converter.convert):
|
if asyncio.iscoroutinefunction(converter.convert):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user