Commit ce81c30
committed
Quit SMTP connection on any initialization failure
Broaden the except clause from SMTPAuthenticationError to Exception
so the connection is cleaned up when starttls() or
ehlo_or_helo_if_needed() fails as well.
Fixes #1791 parent d76321a commit ce81c30
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments