}
rescue StandardError, Timeout::Error => e
error "HttpUtil.get exception: #{e.inspect}, while trying to get #{uri}"
+ debug e.backtrace.join("\n")
end
return nil
end
}
rescue StandardError, Timeout::Error => e
error "HttpUtil.head exception: #{e.inspect}, while trying to get #{uri}"
+ debug e.backtrace.join("\n")
end
return nil
end
end
rescue => e
warning "Error #{e.inspect} getting the page #{uri}, using cache"
+ debug e.backtrace.join("\n")
return @cache[k][:body]
end
# If we still haven't returned, we are dealing with a non-redirected document