fix comment
This commit is contained in:
parent
bf75f8e8ab
commit
6b31b8926e
|
@ -1559,8 +1559,9 @@ class Contact(Base, ModelMixin):
|
||||||
# make sure email is lowercase and doesn't have any whitespace
|
# make sure email is lowercase and doesn't have any whitespace
|
||||||
website_email = sanitize_email(website_email)
|
website_email = sanitize_email(website_email)
|
||||||
|
|
||||||
# make sure alias is not in global trash, i.e. DeletedAlias table
|
# make sure contact.website_email isn't a reverse alias
|
||||||
if Contact.get_by(reply_email=website_email):
|
orig_contact = Contact.get_by(reply_email=website_email)
|
||||||
|
if orig_contact:
|
||||||
raise CannotCreateContactForReverseAlias
|
raise CannotCreateContactForReverseAlias
|
||||||
|
|
||||||
Session.add(new_contact)
|
Session.add(new_contact)
|
||||||
|
|
Loading…
Reference in a new issue