meeb / whoisit

A Python library to RDAP WHOIS-like services for internet resources such as ASNs, IPs, CIDRs and domains
BSD 3-Clause "New" or "Revised" License
78 stars 20 forks source link

Exception 'AttributeError' raise for some domains #28

Closed gregorywychowaniec-zt closed 5 months ago

gregorywychowaniec-zt commented 5 months ago

The exception "AttributeError: 'list' object has no attribute 'get'" for parser.py at line 192 is raise for some domains like jeldwen.com when call with whoisit.domain(domain_name=domain, allow_insecure_ssl=True) since release 2.7.4.

meeb commented 5 months ago

Ah, this is because the RDAP data returned by the subrequest as of 2.7.4 is returning data in a slightly invalid structure. I'll ignore it.

meeb commented 5 months ago

Also just added a follow_related arg for whoisit.domain(...) where you can set follow_related=False and whoisit won't make subrequests. You can use this as a fallback if the initial query fails. Usage:

whoisit.domain('example.com', follow_related=False)

Both the above will be bundled into a 2.7.6 release shortly.

meeb commented 5 months ago

2.7.6 is available now.