Skip to content

Commit 250dcb5

Browse files
authored
SSLyze saves results even if it couldn't scan the SSL cert - as we might have no HTTPs redirect because no port 443 (#93)
1 parent 1b79010 commit 250dcb5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

karton_ssl_checks/karton_ssl_checks.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,16 @@ def scan() -> List[ServerScanResult]:
158158

159159
return list(scanner.get_results())
160160

161-
results = throttle_request(scan)
161+
try:
162+
results = throttle_request(scan)
163+
except Exception:
164+
self.log.exception(f"Unable to complete scan for {domain}")
165+
results = []
162166

163167
for server_scan_result in results:
164168
if not server_scan_result.scan_result:
165-
raise Exception(f"Unable to complete scan for {domain}. Full result: {server_scan_result}")
169+
self.log.error(f"Unable to complete scan for {domain}. Full result: {server_scan_result}")
170+
continue
166171

167172
certinfo_result = server_scan_result.scan_result.certificate_info.result
168173

0 commit comments

Comments
 (0)