diff --git a/src/bda/plone/shop/mailnotify.py b/src/bda/plone/shop/mailnotify.py index f434921..ad05091 100644 --- a/src/bda/plone/shop/mailnotify.py +++ b/src/bda/plone/shop/mailnotify.py @@ -86,7 +86,9 @@ def __init__(self, context): def _lookup_text(self, field): settings = get_shop_notification_settings() - enum = getattr(settings, field) + enum = getattr(settings, field, None) + if enum is None: + return portal_state = self.context.restrictedTraverse("@@plone_portal_state") lang = portal_state.language() for entry in enum: