Skip to content

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

Code style fixes

Marcin Gębalad72c3704ee6b
diff --git a/saleor/graphql/utils.py b/saleor/graphql/utils.py
index 41ee2d0e7e..971e7028fb 100644
--- a/saleor/graphql/utils.py
+++ b/saleor/graphql/utils.py
@@ -19,7 +19,7 @@ class CategoryAncestorsCache:
def get_node(info, id, only_type=None):
- """Return node or throw an error if the node with given ID does not exist."""
+ """Return node or throw an error if the node does not exist."""
node = graphene.Node.get_node_from_global_id(info, id, only_type=only_type)
if not node:
raise Exception(
diff --git a/saleor/settings.py b/saleor/settings.py
index d2428b742e..c32e829603 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -356,9 +356,7 @@ if ES_URL:
'hosts': ES_URL}}
-GRAPHENE = {
- 'MIDDLEWARE': [
- 'graphene_django.debug.DjangoDebugMiddleware'],}
+GRAPHENE = {'MIDDLEWARE': ['graphene_django.debug.DjangoDebugMiddleware']}
AUTHENTICATION_BACKENDS = [
'saleor.account.backends.facebook.CustomFacebookOAuth2',