Skip to content

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

Add entry to CHANGELOG

Michał Sipa3f9f2a5cab94
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c89113d7ff..276c824a73 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -93,6 +93,7 @@ All notable, unreleased changes to this project will be documented in this file.
- Check if image exists before validating - #5425 by @kswiatek92
- Fix warehouses query not working without id - #5441 by @koradon
- Add accountErrors to CreateToken as a required field - #5437 by @koradon
+- Fix missing accountError when JSONWebTokenError is raised in CreateToken - #5465 by @koradon
## 2.9.0
diff --git a/saleor/graphql/core/mutations.py b/saleor/graphql/core/mutations.py
index 71711bfa02..4a1f187d4c 100644
--- a/saleor/graphql/core/mutations.py
+++ b/saleor/graphql/core/mutations.py
@@ -17,8 +17,8 @@ from graphql_jwt import ObtainJSONWebToken, Verify
from graphql_jwt.exceptions import JSONWebTokenError, PermissionDenied
from ...account import models
-from ..account.types import User
from ...account.error_codes import AccountErrorCode
+from ..account.types import User
from ..utils import get_nodes
from .types import Error, Upload
from .types.common import AccountError
diff --git a/tests/api/test_core.py b/tests/api/test_core.py
index 610b1a609a..dbd8e82825 100644
--- a/tests/api/test_core.py
+++ b/tests/api/test_core.py
@@ -8,6 +8,7 @@ from django.utils import timezone
from graphene import InputField
from graphql_jwt.shortcuts import get_token
+from saleor.account.error_codes import AccountErrorCode
from saleor.graphql.core.enums import ReportingPeriod
from saleor.graphql.core.filters import EnumFilter
from saleor.graphql.core.mutations import BaseMutation
@@ -24,7 +25,6 @@ from saleor.graphql.utils import (
reporting_period_to_date,
)
from saleor.product.models import Category, Product
-from saleor.account.error_codes import AccountErrorCode
from tests.api.utils import _get_graphql_content_from_response, get_graphql_content