mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
Fix nitpick
This commit is contained in:
@@ -1230,10 +1230,10 @@ def send_mail( frm, to, subject, body, config, html=None ):
|
||||
"""
|
||||
|
||||
to = listify( to )
|
||||
if html is None:
|
||||
msg = email_mime_text.MIMEText( body.encode( 'ascii', 'replace' ) )
|
||||
else:
|
||||
if html:
|
||||
msg = email_mime_multipart.MIMEMultipart('alternative')
|
||||
else:
|
||||
msg = email_mime_text.MIMEText( body.encode( 'ascii', 'replace' ) )
|
||||
|
||||
msg[ 'To' ] = ', '.join( to )
|
||||
msg[ 'From' ] = frm
|
||||
|
||||
Reference in New Issue
Block a user