Skip to content

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

Use enum instead od enum.value

Krzysztof Świątekb8b22f67ad8c
diff --git a/saleor/graphql/product/mutations/attributes.py b/saleor/graphql/product/mutations/attributes.py
index cd56c73ebd..9bed71c771 100644
--- a/saleor/graphql/product/mutations/attributes.py
+++ b/saleor/graphql/product/mutations/attributes.py
@@ -412,7 +412,7 @@ class AttributeAssign(BaseMutation):
{
"operations": ValidationError(
f"Attribute doesn't exist.",
- code=ProductErrorCode.NOT_FOUND.value,
+ code=ProductErrorCode.NOT_FOUND,
params={"attributes": list(invalid_attrs)},
)
}