diff --git a/tldtester/sorter.py b/tldtester/sorter.py index 3691c1f..b2bdb2f 100644 --- a/tldtester/sorter.py +++ b/tldtester/sorter.py @@ -155,15 +155,19 @@ def grabber(data, rdaptlds): try: organisation = entity["vcardArray"][1][2][3] except: - organisation = "Reserved (here is the link to the ICANN wiki for more info)" + organisation = "" try: link = data["links"][0]["href"] if "rdap" in link: link = "https://icannwiki.org/." + tld + if organisation.strip() == "": + organisation = link except Exception as e: print("link not found for " + tld) print(e) link = "https://icannwiki.org/." + tld + if organisation.strip() == "": + organisation = link if tld in rdaptlds: rdap = "Yes" else: