mirror of https://github.com/MISP/misp-modules
set status after requests
parent
4166475f9e
commit
a9b7a10c41
|
@ -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…
Reference in New Issue