Skip to content

Commit

Permalink
Fix for missing key in 88a1f10
Browse files Browse the repository at this point in the history
Ref #1540
  • Loading branch information
mxsasha committed Nov 11, 2024
1 parent 88a1f10 commit e361d28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion checks/probes.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def _verdict(self, report):
for name, subtest in report.items():
status = report[name]["status"]
worst_status = report[name]["worst_status"]
override_mandatory = report[name]["override_mandatory"]
override_mandatory = report[name].get("override_mandatory")
if worst_status == STATUS_FAIL:
is_mandatory = True
elif worst_status == STATUS_NOTICE:
Expand Down
1 change: 1 addition & 0 deletions checks/tasks/tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2921,6 +2921,7 @@ def connect_to_web_server():
kex_hash_func_score=kex_hash_func_score,
)
except (OSError, NoIpError, ConnectionSocketException):
raise
return dict(server_reachable=False, tls_enabled=False)
except (http.client.BadStatusLine, ConnectionHandshakeException):
return dict(tls_enabled=False)
Expand Down

0 comments on commit e361d28

Please sign in to comment.