diff --git a/kmip/services/server/session.py b/kmip/services/server/session.py index 85fba68..545ea9c 100644 --- a/kmip/services/server/session.py +++ b/kmip/services/server/session.py @@ -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))