Avoid premature exit

master
Bob Mottram 2019-08-20 12:18:01 +01:00
parent 193edd2a92
commit a589a14ca3
1 changed files with 5 additions and 4 deletions

View File

@ -1696,10 +1696,11 @@ def createBoxBase(baseDir: str,boxname: str, \
if postsOnPageCtr > itemsPerPage:
break
# count the pages
postsCtr += 1
if postsCtr >= itemsPerPage:
postsCtr = 0
currPage += 1
if currPage != pageNumber:
postsCtr += 1
if postsCtr >= itemsPerPage:
postsCtr = 0
currPage += 1
except Exception as e:
print(e)
if headerOnly: