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: