really fix shutdown in #40
This commit is contained in:
parent
bbe27e2586
commit
de657ba350
|
@ -65,7 +65,7 @@ def make_report(msg, user):
|
||||||
for p in part:
|
for p in part:
|
||||||
if isinstance(p, str):
|
if isinstance(p, str):
|
||||||
text.append(p)
|
text.append(p)
|
||||||
if p.get_content_type() == "text":
|
elif p.get_content_type() == "text":
|
||||||
text.append(part.get_payload())
|
text.append(part.get_payload())
|
||||||
else:
|
else:
|
||||||
logger.error("unknown MIMEtype: " +
|
logger.error("unknown MIMEtype: " +
|
||||||
|
|
Loading…
Reference in a new issue