convert to str

See #1042
 - Legacy-Id: 5751
This commit is contained in:
Emilio Jiménez 2013-05-22 19:30:40 +00:00
parent a8c81570ca
commit 7c481a6c81

View file

@ -372,6 +372,8 @@ def get_body(message):
def parse_email(text):
if isinstance(text, unicode):
text = str(text)
msg = message_from_string(text)
body = get_body(msg)