Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added SocketError to list of types to rescue from with http_request.

Alerted to this because a test in wowr_test.rb was failing

Also fixed 'maintained' typo
  • Loading branch information...
commit 956740fedab826ef4c4971ade52ed43f7c4e2109 1 parent b16cb9d
authored July 20, 2009 pwood committed December 17, 2009

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  lib/wowr.rb
4  lib/wowr.rb
@@ -3,7 +3,7 @@
3 3
 # http://wowr.rubyforge.org/
4 4
 # Written by Ben Humphreys
5 5
 # http://benhumphreys.co.uk/
6  
-# Matained By Peter Wood
  6
+# Maintained By Peter Wood
7 7
 # http://narwar.net/
8 8
 # 
9 9
 # Author:: Ben Humphreys
@@ -1140,7 +1140,7 @@ def http_request(url, options = {})
1140 1140
 			  end
1141 1141
 			rescue Timeout::Error => e
1142 1142
         raise Wowr::Exceptions::NetworkTimeout.new('Timed out - Timeout::Error Exception')
1143  
-			rescue Net::HTTPExceptions => e
  1143
+			rescue SocketError, Net::HTTPExceptions => e
1144 1144
 				raise Wowr::Exceptions::ServerDoesNotExist.new('Specified server at ' + url + ' does not exist.')
1145 1145
 			end
1146 1146
 		end

0 notes on commit 956740f

Please sign in to comment.
Something went wrong with that request. Please try again.