Skip to content

Commit

Permalink
[FIX] poor .cl has no name in RDAP database. Let's put the link inste…
Browse files Browse the repository at this point in the history
…ad of blank
  • Loading branch information
altf4arnold committed May 18, 2024
1 parent 69dc1eb commit 6a60bbf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tldtester/sorter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6a60bbf

Please sign in to comment.