summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2020-10-17 13:43:41 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2020-10-17 13:43:41 +0200
commit01920a5eb9690324967c5ffe7a6f3c006a1f48b2 (patch)
tree77cb66d46a18b5198c87a48b0df13189d7a189ff
parentfbea971f5b9aaf1a7b26f8b19dfde68ad27a40d3 (diff)
downloadhemiptera-master.tar.gz
hemiptera-master.tar.bz2
hemiptera-master.zip
More troubleshoting evil messages.HEADmaster
-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