From 3cca1cc86f4445e520119cb8ad23c6e08c857236 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Apr 06 2018 13:45:02 +0000 Subject: Encode the email message before sending This fixes an uncaught exception that occurs if there is unicode in the author name. Signed-off-by: Patrick Uiterwijk --- diff --git a/pagure/lib/notify.py b/pagure/lib/notify.py index 8aa5044..9e68677 100644 --- a/pagure/lib/notify.py +++ b/pagure/lib/notify.py @@ -820,7 +820,7 @@ To view more about the commits, visit: branch=branch, commits=commits_string, commit_url=commit_url - ) + ).decode('utf-8') mail_to = _get_emails_for_commit_notification(project) send_email(