This commit is contained in:
parent
5a9d88d6af
commit
9aa5753641
|
@ -356,8 +356,7 @@ def create_smtp_server(emails_cfg, smtp_timeout=None):
|
|||
except socket.timeout as e:
|
||||
publisher.record_error(_('Failed to connect to SMTP server (timeout)'), exception=e)
|
||||
raise errors.EmailError('Failed to connect to SMTP server (timeout)')
|
||||
except OSError:
|
||||
# XXX: write message in a queue somewhere?
|
||||
except OSError as e:
|
||||
publisher.record_error(_('Failed to connect to SMTP server'), exception=e)
|
||||
raise errors.EmailError('Failed to connect to SMTP server')
|
||||
if not s.sock:
|
||||
|
|
Loading…
Reference in New Issue