From b6f8bf6c002de8ee3194f90f0c86acfac4545930 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Fri, 21 Jun 2019 15:57:49 -0300 Subject: [PATCH] Fixed error with mails without subject --- workflows/objects/TempAttachment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workflows/objects/TempAttachment.py b/workflows/objects/TempAttachment.py index 2e68e35..9e89ac2 100644 --- a/workflows/objects/TempAttachment.py +++ b/workflows/objects/TempAttachment.py @@ -78,7 +78,8 @@ def getFilename(self): #the email attachment will be write to disk as eml #as filename, we use the email subject filename = self.EWS_attachment.item.subject - + if not filename: + filename = 'No_Subject' #making the filename ok (no special char etc...) filename = slugify(filename) #adding eml extension