5587: Error from ShareIt module

- filter out Null & blank strings while appending attachments list to msg body.
This commit is contained in:
Raman Arora
2019-09-25 12:00:47 -04:00
parent 25aedbbb02
commit 4cfd8a9ab0
+1 -1
View File
@@ -34,6 +34,6 @@ def appendAttachmentList(msgBody, attachmentsList):
body = msgBody
if attachmentsList:
body = body + "\n\n------------Attachments------------\n"
body = body + "\n".join(attachmentsList)
body = body + "\n".join(list(filter(None, attachmentsList)))
return body