Skip to content

Commit

Permalink
Fix memo unicode error in emails
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkst-nick committed May 16, 2018
1 parent e2012c9 commit b4fde1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channel_output_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def do_send_alert(self, input_channel=None, canarydrop=None, **kwargs):
self.data['tokentype'] = canarydrop._drop['type']

self.data['canarytoken'] = canarydrop['canarytoken']
self.data['description'] = canarydrop['memo']
self.data['description'] = unicode(canarydrop['memo'], "utf8") if canarydrop['memo'] is not None else ''
if settings.MAILGUN_DOMAIN_NAME and settings.MAILGUN_API_KEY:
self.mailgun_send(msg=msg,canarydrop=canarydrop)
elif settings.MANDRILL_API_KEY:
Expand Down

0 comments on commit b4fde1b

Please sign in to comment.