mirror of
https://github.com/elisspace/autopsy.git
synced 2026-10-03 07:49:52 +00:00
5587: Error from ShareIt module
- filter out Null & blank strings while appending attachments list to msg body.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user