Readd outside org member error handling

This commit is contained in:
Erin Song 2024-09-26 14:52:59 -07:00
parent d71069606b
commit d66ff33057
No known key found for this signature in database

View file

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