We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5e9617 commit 7cb90c9Copy full SHA for 7cb90c9
1 file changed
sunlight/pagination.py
@@ -58,6 +58,10 @@ def pagingfunc(*args, **kwargs):
58
kwargs[self.page_attr] = page
59
resp = attr(*args, **kwargs)
60
61
+ if not resp:
62
+ logger.debug('! %s returned 0 results this iteration, stopping' % name)
63
+ stopthepresses = True
64
+
65
for rec in resp:
66
67
yield rec
0 commit comments