check if shared_ciphers() is None before logging

This commit is contained in:
Kevin Albertson 2023-06-23 09:10:28 -04:00 committed by arp102
parent 263cb34662
commit fc5917365b
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class KmipSession(threading.Thread):
)
try:
if hasattr(self._connection, 'shared_ciphers'):
if hasattr(self._connection, 'shared_ciphers') and self._connection.shared_ciphers() is not None:
shared_ciphers = self._connection.shared_ciphers()
self._logger.debug(
"Possible session ciphers: {0}".format(len(shared_ciphers))