X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/ad5ca8bbfbef358919aa877e78dceb27fdc6387a..47fdfaba5a11570f2d7d720ee1c80d616d502c74:/app/views/quickvote/results.rhtml
diff --git a/app/views/quickvote/results.rhtml b/app/views/quickvote/results.rhtml
index 7ab73ef..9727d81 100644
--- a/app/views/quickvote/results.rhtml
+++ b/app/views/quickvote/results.rhtml
@@ -53,7 +53,7 @@
<% 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)%>
|
@@ -64,6 +64,10 @@
<%=h err %>
|
<%=h err%>
+ <% rescue NoMethodError %>
+ DNS Unreachable
+ |
+ DNS Unreachable
<% end %>
|
<%= voter.vote.votestring %> |