Convert unicode to str.

See 
 - Legacy-Id: 5749
This commit is contained in:
Emilio Jiménez 2013-05-22 18:34:18 +00:00
parent 66c4a32c57
commit a41abe3054

View file

@ -162,6 +162,8 @@ def extract_body(payload):
def parse_email(text):
if isinstance(text, unicode):
text = str(text)
msg = email.message_from_string(text)
# comment
@ -351,7 +353,7 @@ def create_feedback_email(nomcom, msg):
feedback = Feedback(nomcom=nomcom,
author=addr,
subject=subject,
subject=subject or '',
comments=body)
feedback.save()
return feedback