Add domain manager after email sending error

This commit is contained in:
Erin Song 2024-10-09 16:21:37 -07:00
parent 76fc71382d
commit dd29cbf8ca
No known key found for this signature in database

View file

@ -903,6 +903,7 @@ class DomainAddUserView(DomainFormBaseView):
exc_info=True,
)
messages.warning(self.request, "Could not send email invitation.")
email_success = True
except OutsideOrgMemberError:
logger.warn(
"Could not send email. Can not invite member of a .gov organization to a different organization.",