Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix codeclimate issues
Marcin Gębalab88d3dcc06c7
diff --git a/saleor/graphql/order/mutations/fulfillments.py b/saleor/graphql/order/mutations/fulfillments.pyindex 70659cbe68..5706d6694e 100644--- a/saleor/graphql/order/mutations/fulfillments.py+++ b/saleor/graphql/order/mutations/fulfillments.py@@ -7,7 +7,6 @@ from ....order import modelsfrom ....order.emails import send_fulfillment_confirmationfrom ....order.utils import cancel_fulfillment, update_order_statusfrom ...core.mutations import BaseMutation, ModelMutation-from ...core.types.common import Errorfrom ...order.types import Fulfillmentfrom ...utils import get_node, get_nodesfrom ..types import OrderLinediff --git a/saleor/graphql/product/mutations/products.py b/saleor/graphql/product/mutations/products.pyindex 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)