Indentation matters.

This commit is contained in:
Ralph Bean 2017-12-15 15:08:18 +00:00
parent 3a63cd771e
commit 83ce739c02

View file

@ -452,10 +452,10 @@ def send_email(fromAddress, toAddress, subject, message, ccAddress=None):
This will be replaced by sending messages to a log later.
'''
{% if env == 'staging' %}
{% if env == 'staging' %}
# Send no email in staging...
pass
{% else %}
{% else %}
msg = Message()
msg.add_header('To', ','.join(toAddress))
msg.add_header('From', fromAddress)
@ -467,7 +467,7 @@ def send_email(fromAddress, toAddress, subject, message, ccAddress=None):
smtp = smtplib.SMTP('bastion')
smtp.sendmail(fromAddress, toAddress, msg.as_string())
smtp.quit()
{% endif %}
{% endif %}
def notify_users(errors):