From c2f585d20e4e4cc6c9e1c7080b99c5cd44de0656 Mon Sep 17 00:00:00 2001 From: Jacob Boddey Date: Tue, 4 Mar 2025 10:10:29 +0000 Subject: [PATCH] Catch OS error in TLS server protocol test --- modules/test/tls/python/src/tls_util.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/test/tls/python/src/tls_util.py b/modules/test/tls/python/src/tls_util.py index d92379aab..a60332e2d 100644 --- a/modules/test/tls/python/src/tls_util.py +++ b/modules/test/tls/python/src/tls_util.py @@ -158,6 +158,9 @@ def get_public_certificate(self, except socket.timeout: LOGGER.info('Socket timeout error') return None + except OSError as e: + LOGGER.error(e) + return None return cert_pem