mirror of https://github.com/MISP/misp-modules
add whois expand to test
parent
5a422c2e5b
commit
3eda712193
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue