summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhemiptera6
1 files changed, 5 insertions, 1 deletions
diff --git a/hemiptera b/hemiptera
index 6c03d72..713cffd 100755
--- a/hemiptera
+++ b/hemiptera
@@ -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