really fix shutdown in #40

master
b3yond 2018-10-07 23:28:29 +02:00
parent 0337869dd0
commit 35c3052fcd
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ def make_report(msg, user):
for p in part:
if isinstance(p, str):
text.append(p)
if p.get_content_type() == "text":
elif p.get_content_type() == "text":
text.append(part.get_payload())
else:
logger.error("unknown MIMEtype: " +