Skip to content

Commit

Permalink
Fix memo unicode issues
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkst-nick committed May 16, 2018
1 parent eef6868 commit e2012c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions httpd_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,9 @@ def render_GET(self, request):
float(timestamp)).strftime('%Y %b %d %H:%M:%S')
canarydrop['triggered_list'][formatted_timestamp] = canarydrop['triggered_list'].pop(timestamp)

if canarydrop.get('memo'):
canarydrop['memo'] = unicode(canarydrop['memo'], "utf8")

except (TypeError, NoCanarytokenPresent):
return NoResource().render(request)
g_api_key = get_canary_google_api_key()
Expand Down

0 comments on commit e2012c9

Please sign in to comment.