Browse Source

fix: [circl_passivessl] Return not found error

If passivessl returns empty response, return Not found error instead of error in log
pull/405/head
Jakub Onderka 2 years ago
parent
commit
b053e1c01b
  1. 5
      misp_modules/modules/expansion/circl_passivessl.py

5
misp_modules/modules/expansion/circl_passivessl.py

@ -37,6 +37,11 @@ class PassiveSSLParser():
except Exception:
self.result = {'error': 'There is an authentication error, please make sure you supply correct credentials.'}
return
if not results:
self.result = {'error': 'Not found'}
return
for ip_address, certificates in results.items():
ip_uuid = self._handle_ip_attribute(ip_address)
for certificate in certificates['certificates']:

Loading…
Cancel
Save