Skip to content

Commit

Permalink
Fix pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlQLange committed Feb 22, 2018
1 parent 9d8af3d commit ef0598b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/lib/mailer.py
Expand Up @@ -29,10 +29,10 @@ class MailerException(Exception):
def _mail_recipient(recipient_name, recipient_email,
sender_name, sender_url, subject,
body, headers=None):

if not headers:
headers = {}

mail_from = config.get('smtp.mail_from')
msg = MIMEText(body.encode('utf-8'), 'plain', 'utf-8')
for k, v in headers.items():
Expand Down

0 comments on commit ef0598b

Please sign in to comment.