diff options
-rwxr-xr-x | hemiptera | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -113,7 +113,11 @@ def write_message(path, m) : def get_message_data(m) : """ returns subject and content of message """ - content = m.get_body("plain").get_content() + content = "" + try : + content = m.get_body("plain").get_content() + except : + pass subject = m["Subject"] return subject,content |