From 6a60bbfa77532fb09cc28358bab01fbe743aaca9 Mon Sep 17 00:00:00 2001 From: altf4arnold Date: Sat, 18 May 2024 03:47:35 +0200 Subject: [PATCH] =?UTF-8?q?[FIX]=C2=A0poor=20.cl=20has=20no=20name=20in=20?= =?UTF-8?q?RDAP=20database.=20Let's=20put=20the=20link=20instead=20of=20bl?= =?UTF-8?q?ank?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tldtester/sorter.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: