Thanks to visit codestin.com
Credit goes to github.com

Skip to content

AttributeError @ line 554 in rdap.py #284

@ewongbb

Description

@ewongbb

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):

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions