forked from indymedia/epicyon
Avoid premature exit
parent
193edd2a92
commit
a589a14ca3
9
posts.py
9
posts.py
|
@ -1696,10 +1696,11 @@ def createBoxBase(baseDir: str,boxname: str, \
|
||||||
if postsOnPageCtr > itemsPerPage:
|
if postsOnPageCtr > itemsPerPage:
|
||||||
break
|
break
|
||||||
# count the pages
|
# count the pages
|
||||||
postsCtr += 1
|
if currPage != pageNumber:
|
||||||
if postsCtr >= itemsPerPage:
|
postsCtr += 1
|
||||||
postsCtr = 0
|
if postsCtr >= itemsPerPage:
|
||||||
currPage += 1
|
postsCtr = 0
|
||||||
|
currPage += 1
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
if headerOnly:
|
if headerOnly:
|
||||||
|
|
Loading…
Reference in New Issue