[FIX] Handling exceptions

This commit is contained in:
Arnold Dechamps 2024-05-18 03:17:47 +02:00
parent c52742a6ae
commit 8bdd4bd8c9
No known key found for this signature in database
GPG key ID: AE66543374E41C89

View file

@ -155,7 +155,7 @@ def grabber(data, rdaptlds):
try:
organisation = entity["vcardArray"][1][2][3]
except:
organisation = "Reserved"
organisation = "Reserved (here is the link to the ICANN wiki for more info)"
try:
link = data["links"][0]["href"]
if "rdap" in link:
@ -163,6 +163,7 @@ def grabber(data, rdaptlds):
except Exception as e:
print("link not found for " + tld)
print(e)
link = "https://icannwiki.org/." + tld
if tld in rdaptlds:
rdap = "Yes"
else: