Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix mypy error in introspection check

Mikail KOCAK211091ed92e8
diff --git a/saleor/core/tracing.py b/saleor/core/tracing.py
index a610b53ed9..e81b4b62e8 100644
--- a/saleor/core/tracing.py
+++ b/saleor/core/tracing.py
@@ -17,9 +17,10 @@ def should_trace(info: ResolveInfo) -> bool:
def is_introspection_field(info: ResolveInfo):
- for path in info.path:
- if isinstance(path, str) and path.startswith("__"):
- return True
+ if info.path is not None:
+ for path in info.path:
+ if isinstance(path, str) and path.startswith("__"):
+ return True
return False