Skip to content
Snippets Groups Projects
Unverified Commit c72eec46 authored by Olivier Dony's avatar Olivier Dony
Browse files

[FIX] mail: do not shadow SMTP errors with QUIT

When an exception is raised during the course of a normal SMTP session,
smtplib's `sendmail()` method will close the channel automatically,
so any further attempt at sending SMTP commands will fail with an
SMTPServerDisconnected error, even just calling `smtp.quit()`.
This will shadow the original error, and make debugging harder.

Fixes #1493
parent 6ef27bb9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment