From de657ba35060ad03af3f3b767e9ed624744b6269 Mon Sep 17 00:00:00 2001 From: b3yond Date: Sun, 7 Oct 2018 23:28:29 +0200 Subject: [PATCH] really fix shutdown in #40 --- active_bots/mailbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/active_bots/mailbot.py b/active_bots/mailbot.py index 060855e..1c54088 100644 --- a/active_bots/mailbot.py +++ b/active_bots/mailbot.py @@ -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: " +