From 4cfd8a9ab0579693a36aaeb4357fb5b1ce4c5de0 Mon Sep 17 00:00:00 2001 From: Raman Arora Date: Wed, 25 Sep 2019 12:00:47 -0400 Subject: [PATCH] 5587: Error from ShareIt module - filter out Null & blank strings while appending attachments list to msg body. --- InternalPythonModules/android/general.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InternalPythonModules/android/general.py b/InternalPythonModules/android/general.py index 53c123d13c..e8cb199b8d 100644 --- a/InternalPythonModules/android/general.py +++ b/InternalPythonModules/android/general.py @@ -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