Skip to content

Commit b686ca3

Browse files
authored
Catch OS error in TLS server protocol test (#1171)
1 parent a80989d commit b686ca3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/test/tls/python/src/tls_util.py

+3
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ def get_public_certificate(self,
158158
except socket.timeout:
159159
LOGGER.info('Socket timeout error')
160160
return None
161+
except OSError as e:
162+
LOGGER.error(e)
163+
return None
161164

162165
return cert_pem
163166

0 commit comments

Comments
 (0)