Skip to content

Commit 8e2a8f2

Browse files
committed
Fixed coding error.
See ietf-tools#1042 - Legacy-Id: 5755
1 parent 7c481a6 commit 8e2a8f2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/nomcom/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from django.core.urlresolvers import reverse
1616
from django.template.loader import render_to_string
1717
from django.shortcuts import get_object_or_404
18+
from django.utils.encoding import smart_str
1819

1920
from ietf.dbtemplate.models import DBTemplate
2021
from ietf.person.models import Email, Person
@@ -373,7 +374,7 @@ def get_body(message):
373374

374375
def parse_email(text):
375376
if isinstance(text, unicode):
376-
text = str(text)
377+
text = smart_str(text)
377378
msg = message_from_string(text)
378379

379380
body = get_body(msg)

0 commit comments

Comments
 (0)