set status after requests

pull/197/head
Sebdraven 2018-06-20 18:03:34 +02:00
parent 4166475f9e
commit a9b7a10c41
1 changed files with 2 additions and 1 deletions

View File

@ -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'])