From fc1878d72a2b7497ff8a3f614b7f2df00fda3117 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 18 Nov 2019 12:25:59 +0000 Subject: [PATCH] Always test timeline post type --- posts.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/posts.py b/posts.py index baa6f4787..515bc3535 100644 --- a/posts.py +++ b/posts.py @@ -2295,8 +2295,9 @@ def isTimelinePost(filePath: str,boxname: str,postsInBox: []) -> bool: if '"Create"' in postStr: if 'mediaType' not in postStr or 'image/' not in postStr: return False - # add the post to the dictionary - postsInBox.append(postStr) + if postsInBox!=None: + # add the post to the dictionary + postsInBox.append(postStr) return True return False @@ -2368,24 +2369,24 @@ def createBoxIndexed(session,baseDir: str,boxname: str, \ with open(indexFilename, 'r') as indexFile: while postsCtr