]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
httputil: don't raise on HTTPServer/ClientError
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 13 Oct 2008 16:18:43 +0000 (18:18 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 13 Oct 2008 16:18:43 +0000 (18:18 +0200)
lib/rbot/core/utils/httputil.rb

index ae16416d4e15dc52228d5a4509833b7ab574fea5..8272057a09f5638ae32e9c4bdb8b6f0fb8a829ee 100644 (file)
@@ -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