From 174e93cb25ef30c967bfa1bc3fafe8e5d6035077 Mon Sep 17 00:00:00 2001 From: Nate Coraor Date: Mon, 7 Nov 2011 15:27:43 -0500 Subject: [PATCH] Actually send error reports to the creator instead of lying and saying that we did. --- lib/galaxy/util/__init__.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/galaxy/util/__init__.py b/lib/galaxy/util/__init__.py index 893e9bcc408..daad6cc04ec 100644 --- a/lib/galaxy/util/__init__.py +++ b/lib/galaxy/util/__init__.py @@ -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()