Skip to content

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

Inherit error codes after string

Mira Szewczykee6a9fa85449
diff --git a/saleor/stock/error_codes.py b/saleor/stock/error_codes.py
index 090de496e8..f893ff5cd0 100644
--- a/saleor/stock/error_codes.py
+++ b/saleor/stock/error_codes.py
@@ -1,7 +1,7 @@
from enum import Enum
-class StockErorrCode(Enum):
+class StockErorrCode(str, Enum):
ALREADY_EXISTS = "already_exists"
GRAPHQL_ERROR = "graphql_error"
INVALID = "invalid"
diff --git a/saleor/warehouse/error_codes.py b/saleor/warehouse/error_codes.py
index 270fe882a3..0a8a70f01b 100644
--- a/saleor/warehouse/error_codes.py
+++ b/saleor/warehouse/error_codes.py
@@ -1,7 +1,7 @@
from enum import Enum
-class WarehouseErorrCode(Enum):
+class WarehouseErorrCode(str, Enum):
ALREADY_EXISTS = "already_exists"
GRAPHQL_ERROR = "graphql_error"
INVALID = "invalid"