forked from indymedia/epicyon
Restore exception
parent
5df93a0f20
commit
aeab76c890
6
posts.py
6
posts.py
|
@ -1661,7 +1661,7 @@ def createBoxBase(baseDir: str,boxname: str, \
|
||||||
boxname+'?min_id='+postId+'&page=true'
|
boxname+'?min_id='+postId+'&page=true'
|
||||||
# get the full path of the post file
|
# get the full path of the post file
|
||||||
filePath = postFilename
|
filePath = postFilename
|
||||||
#try:
|
try:
|
||||||
if os.path.isfile(filePath):
|
if os.path.isfile(filePath):
|
||||||
if currPage == pageNumber and postsOnPageCtr <= itemsPerPage:
|
if currPage == pageNumber and postsOnPageCtr <= itemsPerPage:
|
||||||
# get the post as json
|
# get the post as json
|
||||||
|
@ -1701,8 +1701,8 @@ def createBoxBase(baseDir: str,boxname: str, \
|
||||||
if postsCtr >= itemsPerPage:
|
if postsCtr >= itemsPerPage:
|
||||||
postsCtr = 0
|
postsCtr = 0
|
||||||
currPage += 1
|
currPage += 1
|
||||||
#except Exception as e:
|
except Exception as e:
|
||||||
# print(e)
|
print(e)
|
||||||
if headerOnly:
|
if headerOnly:
|
||||||
return boxHeader
|
return boxHeader
|
||||||
return boxItems
|
return boxItems
|
||||||
|
|
Loading…
Reference in New Issue