From aeab76c8901b7155aa6cbbebcb2d0e67213742bc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 20 Aug 2019 14:47:39 +0100 Subject: [PATCH] Restore exception --- posts.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/posts.py b/posts.py index 4acfb46e..f6362a46 100644 --- a/posts.py +++ b/posts.py @@ -1661,8 +1661,8 @@ def createBoxBase(baseDir: str,boxname: str, \ boxname+'?min_id='+postId+'&page=true' # get the full path of the post file filePath = postFilename - #try: - if os.path.isfile(filePath): + try: + if os.path.isfile(filePath): if currPage == pageNumber and postsOnPageCtr <= itemsPerPage: # get the post as json with open(filePath, 'r') as fp: @@ -1701,8 +1701,8 @@ def createBoxBase(baseDir: str,boxname: str, \ if postsCtr >= itemsPerPage: postsCtr = 0 currPage += 1 - #except Exception as e: - # print(e) + except Exception as e: + print(e) if headerOnly: return boxHeader return boxItems