Skip to content

Commit

Permalink
modify emailutils.py per this: matrix-org#355 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay committed Jun 15, 2021
1 parent 4f05ad8 commit a8eda81
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sydent/util/emailutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,12 @@ def sendEmail(
smtp.quit()
except Exception as origException:
twisted.python.log.err()
ese = EmailSendException()
ese.cause = origException
raise ese
raise EmailSendException() from origException


class EmailAddressException(Exception):
pass


class EmailSendException(Exception):
cause: Any # type hint added to prevent ""EmailSendException" has no attribute "cause"" error in Mypy
pass

0 comments on commit a8eda81

Please sign in to comment.