Skip to content

Commit

Permalink
exception when page is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
skygarlics committed Jul 16, 2018
1 parent 07ac754 commit c4ecb5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DCfinder_GUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ private async void SearchGallery(CancellationToken token)
page_len = dcfinder.CountPages(page_btns);
}

if (page_len < 1)
continue;

// get articles of page1, which already loaded
{
ArticleCollection articles = new ArticleCollection(html);
Expand Down

0 comments on commit c4ecb5a

Please sign in to comment.