X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/ee7a5c7130df812e96922e9f47ed9355cc78e72c..4c5046ffa16ea77da4e4b69517dcb33bc6ec2646:/app/views/quickvote/results.rhtml?ds=inline diff --git a/app/views/quickvote/results.rhtml b/app/views/quickvote/results.rhtml index 2999e6b..6c1130f 100644 --- a/app/views/quickvote/results.rhtml +++ b/app/views/quickvote/results.rhtml @@ -158,7 +158,7 @@ by several other names.

<% begin %> <% raise ArgumentError.new, "Local Server" if voter.ipaddress == "127.0.0.1" %> <% raise ArgumentError.new, "XML-RPC Voter" if voter.ipaddress == "XMLRPC Request" %> - <% w= Whois::Whois.new(IPAddr.new(voter.ipaddress).to_s,true)%> + <% w= Whois::Whois.new(IPAddr.new(voter.ipaddress),true)%> <%=h((w.host == nil or w.host.empty?) ? voter.ipaddress : w.host)%> @@ -169,6 +169,10 @@ by several other names.

<%=h err %> <%=h err%> + <% rescue NoMethodError %> + DNS Unreachable + + DNS Unreachable <% end %> <%= voter.vote.votestring %>