Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix mypy error in introspection check
Mikail KOCAK211091ed92e8
diff --git a/saleor/core/tracing.py b/saleor/core/tracing.pyindex 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 Truereturn False