Skip to content

Commit

Permalink
catch missing payment_text entry
Browse files Browse the repository at this point in the history
  • Loading branch information
petschki committed Apr 16, 2024
1 parent 73865e9 commit cb3089f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bda/plone/shop/mailnotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def __init__(self, context):
def payment_text(self, payment):
settings = get_shop_payment_settings()
lang = api.portal.get_current_language()
for entry in settings.payment_text:
for entry in (settings.payment_text or []):
if entry["lang"] == lang and entry["payment"] == payment:
return entry["text"]
return ""

0 comments on commit cb3089f

Please sign in to comment.