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