Fix second nitpick

This commit is contained in:
Eric Rasche
2016-04-13 17:24:26 +00:00
parent cba10c812b
commit a3e925cc1b
+1 -1
View File
@@ -1244,7 +1244,7 @@ def send_mail( frm, to, subject, body, config, html=None ):
log.info( msg )
return
if html is not None:
if not html:
mp_text = email_mime_text.MIMEText( body.encode( 'ascii', 'replace' ), 'plain' )
mp_html = email_mime_text.MIMEText( html.encode( 'ascii', 'replace' ), 'html' )
msg.attach(mp_text)