Add a exception for disconnected server

This commit is contained in:
Andreas Moog 2011-12-03 18:01:55 +01:00
parent d18a35c449
commit 32a85dc172

View File

@ -215,3 +215,6 @@ Content-Type: text/plain; charset=UTF-8
'[Enter] to retry. Press [Ctrl-C] to abort now.') '[Enter] to retry. Press [Ctrl-C] to abort now.')
else: else:
return return
except smtplib.SMTPServerDisconnected:
Logger.error('Server disconnected while sending the mail.')
return