Skip to content

Commit

Permalink
ignore subrequested RDAP response entity data which is in a nonconfor…
Browse files Browse the repository at this point in the history
…mant structure, resolves #28
  • Loading branch information
meeb committed Apr 30, 2024
1 parent ad69a22 commit 925d307
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions whoisit/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ def extract_entities(self, entities=None):
entities = self.raw_data.get('entities', [])

for entity in entities:
if not isinstance(entity, dict):
continue
handle = clean(entity.get('handle', '')).upper()
url = ''
for link in entity.get('links', []):
Expand Down

0 comments on commit 925d307

Please sign in to comment.