Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Refactor handle_typed_errors in BaseMutation
IKarbowiakf03f1647a971
diff --git a/saleor/graphql/core/mutations.py b/saleor/graphql/core/mutations.pyindex ddb3c62b7e..0e793ebcce 100644--- a/saleor/graphql/core/mutations.py+++ b/saleor/graphql/core/mutations.py@@ -309,7 +309,8 @@ class BaseMutation(graphene.Mutation):field=e.field, message=e.message, code=code)if params:- for error_field in set(params.keys()) & error_class_fields:+ error_fields_in_params = set(params.keys()) & error_class_fields+ for error_field in error_fields_in_params:setattr(error_instance, error_field, params[error_field])typed_errors.append(error_instance)