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