mirror of
https://github.com/solero/houdini.git
synced 2025-01-10 22:57:01 +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):
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user