You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
raise UserError(rec.name + " has multiple entries in the mailing contacts.\nPlease clean things up and get back here after having removed the duplicates.")
elif len(existing_contacts) == 1:
for recipient in existing_contacts: # should get exactly 1 recipient
list_ids = [listid.id for listid in recipient.list_ids] # get all the lists the user is subscribed to