From 4fe3bd1acb6f7f881dc89fa7bbf8d37f5092de6f Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Nov 15 2016 15:07:58 +0000 Subject: Drop the call to .encode() that is indeed not needed Thanks @jcline for pointing it out --- diff --git a/pagure/lib/notify.py b/pagure/lib/notify.py index b15bed9..b29871a 100644 --- a/pagure/lib/notify.py +++ b/pagure/lib/notify.py @@ -199,7 +199,7 @@ def send_email(text, subject, to_mail, 'FROM_EMAIL', 'pagure@fedoraproject.org') if user_from: header = Header(user_from, 'utf-8') - from_email = '%s <%s>' % (header.encode(), from_email) + from_email = '%s <%s>' % (header, from_email) if project_name is not None: subject_tag = project_name