From d91efacf4b1ca383990ff0faf03afd7f360a3279 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 20 Oct 2019 10:14:27 +0100 Subject: [PATCH] Extra filename check --- posts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/posts.py b/posts.py index 10ada8187..c16562a41 100644 --- a/posts.py +++ b/posts.py @@ -1960,6 +1960,8 @@ def createBoxBase(session,baseDir: str,boxname: str, \ postsInSharedInbox=os.scandir(sharedBoxDir) for postFilename in postsInSharedInbox: postFilename=postFilename.name + if not postFilename.endswith('.json'): + continue statusNumber=getStatusNumberFromPostFilename(postFilename) if statusNumber: sharedInboxFilename=os.path.join(sharedBoxDir, postFilename)