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