# HG changeset patch # User Richard # Date 1518708765 0 # Node ID 7bec7a730d694bad30d1e440e5e5a41b52885949 # Parent 92d15e20f7bd55562aab799ed24178cdfb920b9a# Parent 6cbe4891d62a46340f9c6c215c649b772cdad133 Merged in kidmose/pywhois/feature/test-missing-keys (pull request #33) test_parser.py: Fail on missing keys diff -r 6cbe4891d62a -r 7bec7a730d69 whois/parser.py --- a/whois/parser.py Thu Feb 15 15:00:18 2018 +0100 +++ b/whois/parser.py Thu Feb 15 15:32:45 2018 +0000 @@ -274,10 +274,22 @@ return WhoisIe(domain, text) elif domain.endswith('.nz'): return WhoisNz(domain, text) + elif domain.endswith('.space'): + return WhoisSpace(domain, text) else: return WhoisEntry(domain, text) +class WhoisSpace(WhoisEntry): + """Whois parser for .space domains + """ + def __init__(self, domain, text): + if 'No match for "' in text: + raise PywhoisError(text) + else: + WhoisEntry.__init__(self, domain, text) + + class WhoisCom(WhoisEntry): """Whois parser for .com domains """