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
Upstream commit: aab7def 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 Resolves: https://issues.redhat.com/browse/RHEL-46030
- Loading branch information