mirror of https://github.com/MISP/misp-modules
fix: More clarity on the exception raised on the securitytrails module
parent
69e81b47d7
commit
bfe227d555
|
@ -151,7 +151,11 @@ def expand_domain_info(api, misperror, domain):
|
||||||
servers_mx = []
|
servers_mx = []
|
||||||
soa_hostnames = []
|
soa_hostnames = []
|
||||||
|
|
||||||
results = api.domain(domain)
|
try:
|
||||||
|
results = api.domain(domain)
|
||||||
|
except APIError as e:
|
||||||
|
misperrors['error'] = e.value
|
||||||
|
return [], False
|
||||||
|
|
||||||
if results:
|
if results:
|
||||||
status_ok = True
|
status_ok = True
|
||||||
|
|
Loading…
Reference in New Issue