It's "NOT FOUND" and not "No entries found" whois_in
authorGrigouze <grigouze@yahoo.fr>
Thu, 30 Nov 2017 11:00:43 +0100
branchwhois_in
changeset 138 f8c4b2f6355b
parent 137 565c0268bc39
child 139 369f758afd9b
It's "NOT FOUND" and not "No entries found"
whois/parser.py
--- a/whois/parser.py	Thu Nov 30 10:54:42 2017 +0100
+++ b/whois/parser.py	Thu Nov 30 11:00:43 2017 +0100
@@ -1292,7 +1292,7 @@
     }
 
     def __init__(self, domain, text):
-        if 'No entries found' in text:
+        if 'NOT FOUND' in text:
             raise PywhoisError(text)
         else:
             WhoisEntry.__init__(self, domain, text, self.regex)