Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix error message
Michał Sipa14468a87f47c
diff --git a/saleor/graphql/core/scalars.py b/saleor/graphql/core/scalars.pyindex f6606d1e05..0c211f3ca7 100644--- a/saleor/graphql/core/scalars.py+++ b/saleor/graphql/core/scalars.py@@ -46,7 +46,7 @@ class WeightScalar(graphene.Scalar):default_unit = get_default_weight_unit()weight = Weight(**{default_unit: value})if not weight:- raise ValueError(f"Unsupported value: {node.value}")+ raise ValueError(f"Unsupported value: {value}")return weight@staticmethod