From c808d8081367e2919b5b24731ea7e4e887126d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20L=C3=B3pez=20Garc=C3=ADa?= Date: Thu, 31 Oct 2024 15:38:20 +0100 Subject: [PATCH] Fixed raising an exception if some error happens when opening/closing client --- kmip/pie/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kmip/pie/client.py b/kmip/pie/client.py index d27ad4b1..dcbb7004 100644 --- a/kmip/pie/client.py +++ b/kmip/pie/client.py @@ -174,7 +174,7 @@ def open(self): self._is_open = True except Exception as e: self.logger.error("could not open client connection: %s", e) - raise + raise exceptions.ClientConnectionFailure def close(self): """ @@ -191,7 +191,7 @@ def close(self): self._is_open = False except Exception as e: self.logger.error("could not close client connection: %s", e) - raise + raise exceptions.ClientConnectionFailure @is_connected def create(self, algorithm, length, operation_policy_name=None, name=None,