Skip to content

Commit

Permalink
fix: add an error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ninoseki committed Sep 17, 2018
1 parent 81a780e commit 2a1992d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/miteru/crawler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def execute
pool.process do
doc = Website.new(url)
results << url if doc.has_kit?
rescue HTTPResponseError => _
next
end
end
pool.shutdown
Expand Down

0 comments on commit 2a1992d

Please sign in to comment.