Catch ConnectionResetError when attempting to fetch the certificate

This commit is contained in:
Scott Wallace 2024-07-17 10:20:14 +01:00
parent 49867ff272
commit fa428fa26c
Signed by: scott
SSH key fingerprint: SHA256:+LJug6Dj01Jdg86CILGng9r0lJseUrpI0xfRqdW9Uws

View file

@ -102,9 +102,10 @@ if __name__ == "__main__":
except ( except (
ConnectionRefusedError, ConnectionRefusedError,
ConnectionResetError,
socket.gaierror,
ssl.CertificateError, ssl.CertificateError,
ssl.SSLError, ssl.SSLError,
socket.gaierror,
TimeoutError, TimeoutError,
) as error: ) as error:
display_error(endpoint, error) display_error(endpoint, error)