check entry in result dico

pull/498/head
Sebdraven 2021-04-23 16:15:38 +02:00
parent 436254cd8c
commit f32717c896
1 changed files with 7 additions and 7 deletions

View File

@ -44,7 +44,7 @@ class OnypheClient:
results = self.onyphe_client.summary_ip(self.attribute['value'])
if 'results' in results:
for r in results['results']:
print(r)
if 'domain' in r:
domain = r['domain']
if type(domain) == list:
for d in domain: