Skip to content

Commit

Permalink
booru/page: Prevent crash when no post count is available
Browse files Browse the repository at this point in the history
  • Loading branch information
ahodesuka committed May 15, 2018
1 parent 216eae6 commit be37719
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/booru/page.cc
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ void Page::get_posts()
postsCount = std::stoul(doc.get_children()[0].get_value());
}
catch (const std::runtime_error &e) { }
catch (const std::invalid_argument &e) { }
}
else if (m_Curler.is_cancelled())
{
Expand Down

0 comments on commit be37719

Please sign in to comment.