From 32a85dc1729eceee27561531cbb680ae585e7cb8 Mon Sep 17 00:00:00 2001 From: Andreas Moog Date: Sat, 3 Dec 2011 18:01:55 +0100 Subject: [PATCH] Add a exception for disconnected server --- ubuntutools/requestsync/mail.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ubuntutools/requestsync/mail.py b/ubuntutools/requestsync/mail.py index dce0cac..70801f3 100644 --- a/ubuntutools/requestsync/mail.py +++ b/ubuntutools/requestsync/mail.py @@ -215,3 +215,6 @@ Content-Type: text/plain; charset=UTF-8 '[Enter] to retry. Press [Ctrl-C] to abort now.') else: return + except smtplib.SMTPServerDisconnected: + Logger.error('Server disconnected while sending the mail.') + return