add whois expand to test

pull/208/head
Sebdraven 2018-07-12 14:58:48 +02:00
parent 5a422c2e5b
commit 3eda712193
1 changed files with 10 additions and 10 deletions

View File

@ -124,16 +124,16 @@ def handle_domain(api, domain, misperrors):
# 'error'] + ' Error in expand History DNS' # 'error'] + ' Error in expand History DNS'
# return misperrors # return misperrors
r, status_ok = expand_history_whois(api, domain) # r, status_ok = expand_history_whois(api, domain)
#
if status_ok: # if status_ok:
if r: # if r:
#
result_filtered['results'].extend(r) # result_filtered['results'].extend(r)
else: # else:
misperrors['error'] = misperrors['error'] + \ # misperrors['error'] = misperrors['error'] + \
' Error in expand History Whois' # ' Error in expand History Whois'
return misperrors # return misperrors
return result_filtered return result_filtered