mirror of
https://github.com/solero/houdini.git
synced 2025-08-09 20:24:05 +00:00
Fix for converter syntax not recognising custom IConverter objects
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user