Browse Source

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

pull/352/head
chrisr3d 2 years ago
parent
commit
bfe227d555
No known key found for this signature in database GPG Key ID: 6BBED1B63A6D639F
  1. 6
      misp_modules/modules/expansion/securitytrails.py

6
misp_modules/modules/expansion/securitytrails.py

@ -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

Loading…
Cancel
Save