Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
smtplib: catch OSError, not SMTPException
Some, but not all, types of connection error are caught by smtplib and reraised as an smtplib.SMTPException. Notably, TimeoutError, socket.gaierror (name resolution failure), and ConnectionRefusedError and are not caught. The more generic OSError should be caught here instead. Resolves #1905
- Loading branch information