add whois expand to test

pull/208/head
Sebdraven 5 years ago
parent 5a422c2e5b
commit 3eda712193
  1. 20
      misp_modules/modules/expansion/securitytrails.py

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

Loading…
Cancel
Save