Skip to content

Commit

Permalink
check if shared_ciphers() is None before logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinAlbs authored and arp102 committed Aug 1, 2023
1 parent 263cb34 commit fc59173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kmip/services/server/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def _handle_message_loop(self):
)

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))
Expand Down

0 comments on commit fc59173

Please sign in to comment.