def get_whois(domain):
    try:
        query = whois.query(domain)
        assert isinstance(query, whois._3_adjust.Domain)
        return query.__dict__
    except:
        pass
    return None
def get_whois(domain):
    try:
        query = whois.query(domain)
        assert isinstance(query, whois._3_adjust.Domain)
        return query.__dict__
    except:
        pass
    return None