We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0fc843 + 035ff7e commit e94716dCopy full SHA for e94716d
docs/execution/middleware.rst
@@ -57,7 +57,7 @@ logs the time it takes to resolve each field
57
return_value = next(root, info, **args)
58
duration = timer() - start
59
logger.debug("{parent_type}.{field_name}: {duration} ms".format(
60
- parent_type=root._meta.name if root else '',
+ parent_type=root._meta.name if root and hasattr(root, '_meta') else '',
61
field_name=info.field_name,
62
duration=round(duration * 1000, 2)
63
))
0 commit comments