From 465451461e1d60f2105e1a16dfe7d278e3cb3c10 Mon Sep 17 00:00:00 2001 From: Richie Vos Date: Mon, 2 Nov 2009 10:50:35 -0600 Subject: [PATCH] StandardError doesn't encompass Timeout::Error, so catch those --- lib/sitemap_generator/helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sitemap_generator/helper.rb b/lib/sitemap_generator/helper.rb index c6211056..00d43445 100644 --- a/lib/sitemap_generator/helper.rb +++ b/lib/sitemap_generator/helper.rb @@ -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: