From 68bcb2b77929549d171af3fd86774d325644d45c Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 13 Oct 2008 18:18:43 +0200 Subject: httputil: don't raise on HTTPServer/ClientError --- lib/rbot/core/utils/httputil.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rbot') diff --git a/lib/rbot/core/utils/httputil.rb b/lib/rbot/core/utils/httputil.rb index ae16416d..8272057a 100644 --- a/lib/rbot/core/utils/httputil.rb +++ b/lib/rbot/core/utils/httputil.rb @@ -610,8 +610,8 @@ class HttpUtil opts = {:method => :head}.merge(options) begin resp = get_response(uri, opts, &block) - raise "http error #{resp}" if Net::HTTPClientError === resp || - Net::HTTPServerError == resp + # raise "http error #{resp}" if Net::HTTPClientError === resp || + # Net::HTTPServerError == resp return resp rescue Exception => e error e -- cgit v1.2.3