Skip to content

Commit

Permalink
Be more aggressive about catching errors when fetching remote pages
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronpk committed Jun 28, 2012
1 parent 3b90263 commit 253bbb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/relparser.rb
Expand Up @@ -27,7 +27,7 @@ def get(tag)
puts "<<<<<<< FETCHING #{@url} >>>>>>>"
begin
@page = @agent.get @url
rescue Mechanize::ResponseCodeError
rescue # catch all errors and return a blank list
return []
end
if @page.class != Mechanize::Page
Expand Down

0 comments on commit 253bbb8

Please sign in to comment.