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 2020-06-03 11:19:21 +02:00
parent 6e21893be4
commit b053e1c01b
1 changed files with 5 additions and 0 deletions

View File

@ -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']: