Catch ConnectionResetError
when attempting to fetch the certificate
This commit is contained in:
parent
49867ff272
commit
fa428fa26c
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue