Fix unhandled error when sending email
https://twistedmatrix.com/trac/ticket/9180
https://github.com/twisted/twisted/pull/816
https://github.com/twisted/twisted/commit/5ddbe39695f65e2cd485c997fe2af7afdfe4b751
old
|
new
|
def __init__(self, fromEmail, toEmail, file, deferred, retries=5, |
1896 | 1897 | if not isinstance(_email, bytes): |
1897 | 1898 | _email = _email.encode('ascii') |
1898 | 1899 | |
1899 | | toEmailFinal.append(email) |
| 1900 | toEmailFinal.append(_email) |
1900 | 1901 | toEmail = toEmailFinal |
1901 | 1902 | |
1902 | 1903 | self.fromEmail = Address(fromEmail) |