change errors

pull/208/head
Sebdraven 5 years ago
parent 2a8fb76e84
commit f710162bed
  1. 4
      misp_modules/modules/expansion/dnstrails.py

@ -83,7 +83,7 @@ def handle_domain(api, domain, misperrors):
if status_ok:
result_filtered['results'].extend(r)
else:
misperrors['error'] = 'Error dns result'
misperrors['error'] = 'Error subdomains result'
return misperrors
r, status_ok = expand_whois(api, domain)
@ -91,7 +91,7 @@ def handle_domain(api, domain, misperrors):
if status_ok:
result_filtered['results'].extend(r)
else:
misperrors['error'] = 'Error dns result'
misperrors['error'] = 'Error whois result'
return misperrors
return result_filtered

Loading…
Cancel
Save