Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
PEP8
Pacu2949e93c76c8c
diff --git a/saleor/graphql/product/mutations/attributes.py b/saleor/graphql/product/mutations/attributes.pyindex eb660e9ddf..373cc29e4b 100644--- a/saleor/graphql/product/mutations/attributes.py+++ b/saleor/graphql/product/mutations/attributes.py@@ -121,8 +121,7 @@ class AttributeCreate(AttributeMixin, ModelMutation):@classmethoddef clean_product_type_variant_attributes(cls, product_type, type, errors):- if (- type == AttributeTypeEnum.VARIANT.name+ if (type == AttributeTypeEnum.VARIANT.nameand not product_type.has_variants):cls.add_error(errors, 'product_type',