From fa428fa26cba9da9bea70164d763e5597f5ce7c4 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Wed, 17 Jul 2024 10:20:14 +0100 Subject: [PATCH] Catch `ConnectionResetError` when attempting to fetch the certificate --- cert_deets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cert_deets.py b/cert_deets.py index 4e6386e..0112087 100644 --- a/cert_deets.py +++ b/cert_deets.py @@ -102,9 +102,10 @@ if __name__ == "__main__": except ( ConnectionRefusedError, + ConnectionResetError, + socket.gaierror, ssl.CertificateError, ssl.SSLError, - socket.gaierror, TimeoutError, ) as error: display_error(endpoint, error)