class WhoisClient(object): def __init__(self): self.cache = WhoisServerCache() def query(self, domain): data = WhoisData(domain) data.query(self.cache.query(domain)) try: self.cache.save() except WhoisError, emsg: logger.debug(emsg) pass return data
def __init__(self): self.cache = WhoisServerCache()