Ticket #2585 (new defect)

Opened 5 years ago

Error in case of blacklisted email

Reported by: gracinet Owned by: gracinet
Priority: P2 Milestone: CPS 3.5.6
Component: CPSSubscriptions Version: unspecified
Severity: normal Keywords:


In case one of the recipients is in the blacklist, we get this error:

Module Products.CPSSubscriptions.SubscriptionsTool, line 872, in notify_processed_event
Module Products.CPSSubscriptions.Subscription, line 188, in sendEvent

NameError: global name 'pt_recipient' is not defined

The error is just due to an inconsistent variable name in the logging:

            for email, v in pt_emails.items():
                if email not in self.getRecipientEmailsBlackList():
                    emails[email] = v
                    logger.debug("sendEvent: black list for %r", pt_recipient)
Note: See TracTickets for help on using tickets.