Skip to content

Commit

Permalink
fix: AttributeError: 'str' object has no attribute 'customer_address'
Browse files Browse the repository at this point in the history
  File "apps/webshop/webshop/webshop/shopping_cart/cart.py", line 45, in get_cart_quotation
    if not doc.customer_address and addresses:
AttributeError: 'str' object has no attribute 'customer_address'
  • Loading branch information
ashish-greycube authored Nov 25, 2024
1 parent d77ae22 commit 23f8a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webshop/webshop/shopping_cart/cart.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_cart_quotation(doc=None):

addresses = get_address_docs(party=party)

if not doc.customer_address and addresses:
if not doc.get("customer_address") and addresses:
update_cart_address("billing", addresses[0].name)

return {
Expand Down

0 comments on commit 23f8a78

Please sign in to comment.