Skip to content

Commit

Permalink
StandardError doesn't encompass Timeout::Error, so catch those
Browse files Browse the repository at this point in the history
  • Loading branch information
richievos committed Nov 2, 2009
1 parent 0ec55e3 commit 4654514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sitemap_generator/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def ping_search_engines(sitemap_index)
open(link)
puts "Successful ping of #{engine.to_s.titleize}" unless ENV['SILENT'].present?
end
rescue StandardError => e
rescue Timeout::Error, StandardError => e
puts "Ping failed for #{engine.to_s.titleize}: #{e.inspect}"
puts <<-END if engine == :yahoo
Yahoo requires an 'AppID' for more than one ping per "timeframe", you can either:
Expand Down

0 comments on commit 4654514

Please sign in to comment.