diff --git a/posts.py b/posts.py index 515bc353..baa6f478 100644 --- a/posts.py +++ b/posts.py @@ -2295,9 +2295,8 @@ def isTimelinePost(filePath: str,boxname: str,postsInBox: []) -> bool: if '"Create"' in postStr: if 'mediaType' not in postStr or 'image/' not in postStr: return False - if postsInBox!=None: - # add the post to the dictionary - postsInBox.append(postStr) + # add the post to the dictionary + postsInBox.append(postStr) return True return False @@ -2369,24 +2368,24 @@ def createBoxIndexed(session,baseDir: str,boxname: str, \ with open(indexFilename, 'r') as indexFile: while postsCtr