-
Notifications
You must be signed in to change notification settings - Fork 128
Closed
Description
I came across this attribute error when doing the following:
x = IPWhois('202.143.89.202').lookup_rdap()
Traceback (most recent call last):
File "", line 1, in
File "C:\Program Files\Git\python38\Lib\site-packages\ipwhois\ipwhois.py", line 317, in lookup_rdap
rdap_data = rdap.lookup(
File "C:\Program Files\Git\python38\Lib\site-packages\ipwhois\rdap.py", line 780, in lookup
result_net.parse()
File "C:\Program Files\Git\python38\Lib\site-packages\ipwhois\rdap.py", line 554, in parse
self.vars[v] = self.json[v].strip()
AttributeError: 'NoneType' object has no attribute 'strip'
Apparently the information received as 'type' was null. Not entirely sure how to fix this aside for including AttributeError in the following line in rdap.py
except (KeyError, ValueError, AttributeError):
Reactions are currently unavailable