Skip to content

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

Fix one blank error code

Aleksander Spyrad16f0b52039c
diff --git a/saleor/graphql/product/mutations/attributes.py b/saleor/graphql/product/mutations/attributes.py
index e72d2c539b..8aebd13d9d 100644
--- a/saleor/graphql/product/mutations/attributes.py
+++ b/saleor/graphql/product/mutations/attributes.py
@@ -169,7 +169,8 @@ class AttributeMixin:
raise ValidationError(
{
"slug": ValidationError(
- "The attribute's slug cannot be blank.", code="blank"
+ "The attribute's slug cannot be blank.",
+ code=ProductErrorCode.REQUIRED,
)
}
)