Handle multipart types that aren't

This commit is contained in:
Peter J. Holzer 2019-03-17 22:24:17 +01:00
parent b053ab454f
commit 45848a73ae
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ def render_body(msg):
parts = msg.get_payload() parts = msg.get_payload()
if type(parts) == str: if type(parts) == str:
# mislabelled, assume text/plain # mislabelled, assume text/plain
raise NotImplementedError() return render_text_plain(msg)
partshtml = [] partshtml = []
for part in msg.get_payload(): for part in msg.get_payload():
partshtml.append(render_body(part)) partshtml.append(render_body(part))