[FIX] Handling exceptions
This commit is contained in:
parent
c52742a6ae
commit
8bdd4bd8c9
|
@ -155,7 +155,7 @@ def grabber(data, rdaptlds):
|
||||||
try:
|
try:
|
||||||
organisation = entity["vcardArray"][1][2][3]
|
organisation = entity["vcardArray"][1][2][3]
|
||||||
except:
|
except:
|
||||||
organisation = "Reserved"
|
organisation = "Reserved (here is the link to the ICANN wiki for more info)"
|
||||||
try:
|
try:
|
||||||
link = data["links"][0]["href"]
|
link = data["links"][0]["href"]
|
||||||
if "rdap" in link:
|
if "rdap" in link:
|
||||||
|
@ -163,6 +163,7 @@ def grabber(data, rdaptlds):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("link not found for " + tld)
|
print("link not found for " + tld)
|
||||||
print(e)
|
print(e)
|
||||||
|
link = "https://icannwiki.org/." + tld
|
||||||
if tld in rdaptlds:
|
if tld in rdaptlds:
|
||||||
rdap = "Yes"
|
rdap = "Yes"
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue