Skip to content

Commit 633999d

Browse files
committed
Fiux range check in Pager
1 parent 9749701 commit 633999d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cloudbot/util/pager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def format_chunk(self, chunk, pagenum):
3030

3131
def next(self):
3232
with self.lock:
33-
if self.current_pos > len(self.chunks):
33+
if self.current_pos >= len(self.chunks):
3434
return None
3535

3636
chunk = self[self.current_pos]

0 commit comments

Comments
 (0)