Skip to content

Commit 3431f66

Browse files
committed
improve get_list to fail safe by exiting loop when pattern match failed
1 parent dc2dc2e commit 3431f66

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

atwiki/core.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ def get_list(self, tag=None):
4444
if m:
4545
(total, cursor_begin, cursor_end) = (int(m.group(1)), int(m.group(2)), int(m.group(3)))
4646
is_end = (total == cursor_end)
47+
else:
48+
is_end = True
4749
for link in links:
4850
page_id = self._uri.get_page_id_from_uri(link.attrs['href'])
4951
page_name = link.text.strip()

0 commit comments

Comments
 (0)