summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-10-13 18:18:43 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-10-13 18:18:43 +0200
commit68bcb2b77929549d171af3fd86774d325644d45c (patch)
tree3fcdd92f3a216b0bfa5630e62217f86de3fd2b6d /lib/rbot
parent5d116465f221091fc381f6048ae1013d5cb60971 (diff)
httputil: don't raise on HTTPServer/ClientError
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/core/utils/httputil.rb4
1 files changed, 2 insertions, 2 deletions
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