fix: More clarity on the exception raised on the securitytrails module

new_module
chrisr3d 2019-10-31 17:19:42 +01:00
parent 69e81b47d7
commit bfe227d555
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 5 additions and 1 deletions

View File

@ -151,7 +151,11 @@ def expand_domain_info(api, misperror, domain):
servers_mx = []
soa_hostnames = []
results = api.domain(domain)
try:
results = api.domain(domain)
except APIError as e:
misperrors['error'] = e.value
return [], False
if results:
status_ok = True