mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
Catch response exceptions in the DATA phase
This commit is contained in:
parent
899d1b5361
commit
9442e2ea30
@ -219,6 +219,10 @@ Content-Type: text/plain; charset=UTF-8
|
||||
'[Enter] to retry. Press [Ctrl-C] to abort now.')
|
||||
else:
|
||||
return
|
||||
except smtplib.SMTPResponseException, e:
|
||||
Logger.error('Error while sending: %i, %s',
|
||||
e.smtp_code, e.smtp_error)
|
||||
return
|
||||
except smtplib.SMTPServerDisconnected:
|
||||
Logger.error('Server disconnected while sending the mail.')
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user