mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-07-28 15:21:28 +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.')
|
'[Enter] to retry. Press [Ctrl-C] to abort now.')
|
||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
|
except smtplib.SMTPResponseException, e:
|
||||||
|
Logger.error('Error while sending: %i, %s',
|
||||||
|
e.smtp_code, e.smtp_error)
|
||||||
|
return
|
||||||
except smtplib.SMTPServerDisconnected:
|
except smtplib.SMTPServerDisconnected:
|
||||||
Logger.error('Server disconnected while sending the mail.')
|
Logger.error('Server disconnected while sending the mail.')
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user