Skip to content

Commit

Permalink
lib/ipaddr.rb (initialize): rescue StandardError.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
eban committed Dec 18, 2003
1 parent 8781e77 commit 41a8d90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ipaddr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def initialize(addr = '::', family = Socket::AF_UNSPEC)
# Socket::AI_NUMERICHOST)
begin
IPSocket.getaddress(prefix) # test if address is vaild
rescue ArgumentError
rescue
raise ArgumentError, "invalid address"
end
@addr = @family = nil
Expand Down

0 comments on commit 41a8d90

Please sign in to comment.