mirror of https://gitlab.com/bashrc2/epicyon
Avoid infinite loop when there are no feed items
parent
cc0d3d34fa
commit
d0c1546037
4
posts.py
4
posts.py
|
@ -164,7 +164,9 @@ def parseUserFeed(session, feedUrl: str, asHeader: {},
|
|||
|
||||
if nextUrl:
|
||||
if isinstance(nextUrl, str):
|
||||
userFeed = parseUserFeed(session, nextUrl, asHeader,
|
||||
if '?max_id=0' not in nextUrl:
|
||||
userFeed = \
|
||||
parseUserFeed(session, nextUrl, asHeader,
|
||||
projectVersion, httpPrefix,
|
||||
domain)
|
||||
for item in userFeed:
|
||||
|
|
Loading…
Reference in New Issue