Skip to content

Commit 7c481a6

Browse files
committed
convert to str
See ietf-tools#1042 - Legacy-Id: 5751
1 parent a8c8157 commit 7c481a6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ietf/nomcom/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ def get_body(message):
372372

373373

374374
def parse_email(text):
375+
if isinstance(text, unicode):
376+
text = str(text)
375377
msg = message_from_string(text)
376378

377379
body = get_body(msg)

0 commit comments

Comments
 (0)