mirror of
https://github.com/OpenKMIP/PyKMIP.git
synced 2025-07-22 13:34:22 +02:00
check if shared_ciphers() is None before logging
This commit is contained in:
parent
263cb34662
commit
fc5917365b
@ -127,7 +127,7 @@ class KmipSession(threading.Thread):
|
|||||||
)
|
)
|
||||||
|
|
||||||
try:
|
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()
|
shared_ciphers = self._connection.shared_ciphers()
|
||||||
self._logger.debug(
|
self._logger.debug(
|
||||||
"Possible session ciphers: {0}".format(len(shared_ciphers))
|
"Possible session ciphers: {0}".format(len(shared_ciphers))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user