Actually send error reports to the creator instead of lying and saying that we did.

This commit is contained in:
Nate Coraor
2011-11-07 15:27:43 -05:00
parent e9e0a5e859
commit 174e93cb25
+2 -6
View File
@@ -574,11 +574,9 @@ def send_mail( frm, to, subject, body, config ):
"""
Sends an email.
"""
header_to = to
if isinstance( to, list ):
header_to = ', '.join( to )
to = listify( to )
msg = MIMEText( body )
msg[ 'To' ] = header_to
msg[ 'To' ] = ', '.join( to )
msg[ 'From' ] = frm
msg[ 'Subject' ] = subject
if config.smtp_server is None:
@@ -613,8 +611,6 @@ def send_mail( frm, to, subject, body, config ):
log.error( "No suitable authentication method was found: %s" % e )
s.close()
raise
if isinstance( to, basestring ):
to = [ to ]
s.sendmail( frm, to, msg.as_string() )
s.quit()