fix shutdown in #40
This commit is contained in:
parent
9a3c09b119
commit
bbe27e2586
|
@ -63,6 +63,8 @@ def make_report(msg, user):
|
||||||
text.append(part.get_payload())
|
text.append(part.get_payload())
|
||||||
elif part.get_content_type() == "multipart/mixed":
|
elif part.get_content_type() == "multipart/mixed":
|
||||||
for p in part:
|
for p in part:
|
||||||
|
if isinstance(p, str):
|
||||||
|
text.append(p)
|
||||||
if p.get_content_type() == "text":
|
if p.get_content_type() == "text":
|
||||||
text.append(part.get_payload())
|
text.append(part.get_payload())
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue