def query(self, domain): data = WhoisData(domain) data.query(self.cache.query(domain)) try: self.cache.save() except WhoisError, emsg: logger.debug(emsg) pass
def query(self, domain): data = WhoisData(domain) data.query(self.cache.query(domain)) try: self.cache.save() except WhoisError as e: logger.debug(e) pass return data