fix shutdown in #40

master
b3yond 2018-10-07 23:27:06 +02:00
parent 2cc5824bb9
commit 0337869dd0
1 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,8 @@ def make_report(msg, user):
text.append(part.get_payload())
elif part.get_content_type() == "multipart/mixed":
for p in part:
if isinstance(p, str):
text.append(p)
if p.get_content_type() == "text":
text.append(part.get_payload())
else: