Skip to content

Commit

Permalink
improve get_list to fail safe by exiting loop when pattern match failed
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaehashi committed Aug 10, 2016
1 parent dc2dc2e commit 3431f66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions atwiki/core.py
Expand Up @@ -44,6 +44,8 @@ def get_list(self, tag=None):
if m:
(total, cursor_begin, cursor_end) = (int(m.group(1)), int(m.group(2)), int(m.group(3)))
is_end = (total == cursor_end)
else:
is_end = True
for link in links:
page_id = self._uri.get_page_id_from_uri(link.attrs['href'])
page_name = link.text.strip()
Expand Down

0 comments on commit 3431f66

Please sign in to comment.