Stop continuation requests if continuation contents are empty
This commit is contained in:
parent
7107aca6b1
commit
8cff17e6b4
1 changed files with 2 additions and 0 deletions
|
|
@ -84,6 +84,8 @@ def get_continuations(results, continuation_type, limit, request_func, parse_fun
|
|||
else:
|
||||
break
|
||||
contents = get_continuation_contents(results, parse_func)
|
||||
if len(contents) == 0:
|
||||
break
|
||||
items.extend(contents)
|
||||
|
||||
return items
|
||||
|
|
|
|||
Loading…
Reference in a new issue