Skip to content

Commit 7c260b1

Browse files
committed
pep8
1 parent 967b07e commit 7c260b1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/viur/shop/modules/cart.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,9 @@ def _cart_set_values(
500500
skel["shipping_address"] = None
501501
else:
502502
skel.setBoneValue("shipping_address", shipping_address_key)
503-
if AddressType.SHIPPING.value not in (addr.value for addr in skel["shipping_address"]["dest"]["address_type"]):
503+
if AddressType.SHIPPING.value not in (
504+
addr.value for addr in skel["shipping_address"]["dest"]["address_type"]
505+
):
504506
raise e.InvalidArgumentException(
505507
"shipping_address",
506508
descr_appendix="Address is not of type shipping."

src/viur/shop/modules/order.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ def _order_set_values(
228228
skel["billing_address"] = None
229229
else:
230230
skel.setBoneValue("billing_address", billing_address_key)
231-
if AddressType.BILLING.value not in (addr.value for addr in skel["billing_address"]["dest"]["address_type"]):
231+
if AddressType.BILLING.value not in (
232+
addr.value for addr in skel["billing_address"]["dest"]["address_type"]
233+
):
232234
raise e.InvalidArgumentException(
233235
"billing_address",
234236
descr_appendix="Address is not of type billing."

0 commit comments

Comments
 (0)