whois/whois.py
changeset 45 52ce01013731
parent 36 af839b9c0ed1
child 52 1f80f6dec7ac
--- a/whois/whois.py	Fri Oct 03 16:40:07 2014 +0200
+++ b/whois/whois.py	Mon Nov 10 13:42:37 2014 +0200
@@ -206,6 +206,8 @@
             nichost = self.choose_server(query_arg)
             if (nichost is not None):
                 result = self.whois(query_arg, nichost, flags)
+            else:
+                result = ''
         else:
             result = self.whois(query_arg, options['whoishost'], flags)
         # print 'whois_lookup finished'