sendEmail might raise EmailAddressException or EmailSendError. The former is almost certainly indicative of a bad request. We should return HTTP 400 if so. I suspect that we instead return 500 internal server error.
Note that this is raised if we fail to parse the from address in Sydent config. I'll ensure that raises a different exception so that we end up returning 500 for that one.
https://sentry.matrix.org/sentry/sydent/issues/196870/
sendEmail
might raiseEmailAddressException
orEmailSendError
. The former is almost certainly indicative of a bad request. We should return HTTP 400 if so. I suspect that we instead return 500 internal server error.https://sentry.matrix.org/sentry/sydent/issues/196870/