Browse Source

set status after requests

pull/197/head
Sebdraven 4 years ago
parent
commit
a9b7a10c41
  1. 3
      misp_modules/modules/expansion/onyphe_full.py

3
misp_modules/modules/expansion/onyphe_full.py

@ -167,9 +167,10 @@ def expand_datascan(api, misperror,**kwargs):
query = kwargs.get('domain')
results = api.datascan(query)
print(results)
if results['status'] == 'ok':
status_ok = False
for elem in results['results']:
asn_list.append(elem['asn'])
geoloc.append(elem['location'])

Loading…
Cancel
Save