Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
send_email: Transform OSError failures to EmailNotDeliveredError.
Alex Vandiver23d02455f1e5
diff --git a/zerver/lib/send_email.py b/zerver/lib/send_email.pyindex db154618941..8a98c964ecd 100644--- a/zerver/lib/send_email.py+++ b/zerver/lib/send_email.py@@ -336,7 +336,7 @@ def send_immediate_email()connection.close()raise EmailNotDeliveredError- except smtplib.SMTPException as e:+ except (smtplib.SMTPException, OSError) as e:logger.exception("Error sending %s email to %s: %s", template, mail.to, e, stack_info=True)connection.close()raise EmailNotDeliveredError