Skip to content

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

Fix codeclimate issues

Marcin Gębalab88d3dcc06c7
diff --git a/saleor/graphql/order/mutations/fulfillments.py b/saleor/graphql/order/mutations/fulfillments.py
index 70659cbe68..5706d6694e 100644
--- a/saleor/graphql/order/mutations/fulfillments.py
+++ b/saleor/graphql/order/mutations/fulfillments.py
@@ -7,7 +7,6 @@ from ....order import models
from ....order.emails import send_fulfillment_confirmation
from ....order.utils import cancel_fulfillment, update_order_status
from ...core.mutations import BaseMutation, ModelMutation
-from ...core.types.common import Error
from ...order.types import Fulfillment
from ...utils import get_node, get_nodes
from ..types import OrderLine
diff --git a/saleor/graphql/product/mutations/products.py b/saleor/graphql/product/mutations/products.py
index 4751058727..9807991d1f 100644
--- a/saleor/graphql/product/mutations/products.py
+++ b/saleor/graphql/product/mutations/products.py
@@ -591,7 +591,8 @@ class VariantImageUnassign(BaseMutation):
image=image, variant=variant)
except models.VariantImage.DoesNotExist:
cls.add_error(
- errors, 'imageId', 'Image is not assigned to this variant.')
+ errors, 'imageId',
+ 'Image is not assigned to this variant.')
else:
variant_image.delete()
return VariantImageUnassign(image=image, errors=errors)