From bbe27e258610ef335df93787b2bcbb9cb1a91f9f Mon Sep 17 00:00:00 2001 From: b3yond Date: Sun, 7 Oct 2018 23:27:06 +0200 Subject: [PATCH] fix shutdown in #40 --- active_bots/mailbot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/active_bots/mailbot.py b/active_bots/mailbot.py index 373960f..060855e 100644 --- a/active_bots/mailbot.py +++ b/active_bots/mailbot.py @@ -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: