Fixed coding error.

See #1042
 - Legacy-Id: 5755
This commit is contained in:
Emilio Jiménez 2013-05-22 22:46:43 +00:00
parent 7c481a6c81
commit 8e2a8f2daa

View file

@ -15,6 +15,7 @@ from django.core.exceptions import PermissionDenied
from django.core.urlresolvers import reverse
from django.template.loader import render_to_string
from django.shortcuts import get_object_or_404
from django.utils.encoding import smart_str
from ietf.dbtemplate.models import DBTemplate
from ietf.person.models import Email, Person
@ -373,7 +374,7 @@ def get_body(message):
def parse_email(text):
if isinstance(text, unicode):
text = str(text)
text = smart_str(text)
msg = message_from_string(text)
body = get_body(msg)