Skip to content

Commit 12a8adc

Browse files
committed
Comment update following off of #1110
1 parent 1d9077d commit 12a8adc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cassandra/cluster.py

+5
Original file line numberDiff line numberDiff line change
@@ -5141,6 +5141,11 @@ def next(self):
51415141
if not self.response_future._continuous_paging_session:
51425142
self.fetch_next_page()
51435143
self._page_iter = iter(self._current_rows)
5144+
5145+
# Some servers can return empty pages in this case; Scylla is known to do
5146+
# so in some circumstances. Guard against this by recursing to handle
5147+
# the next(iter) call. If we have an empty page in that case it will
5148+
# get handled by the StopIteration handler when we recurse.
51445149
return self.next()
51455150

51465151
return next(self._page_iter)

0 commit comments

Comments
 (0)