mirror of
https://github.com/OpenKMIP/PyKMIP.git
synced 2025-07-02 03:34:22 +02:00
Merge pull request #443 from tipabu/reraise
Reraise exceptions to preserve stack traces
This commit is contained in:
commit
4e138207af
@ -132,7 +132,7 @@ class ProxyKmipClient(object):
|
||||
self._is_open = True
|
||||
except Exception as e:
|
||||
self.logger.exception("could not open client connection", e)
|
||||
raise e
|
||||
raise
|
||||
|
||||
def close(self):
|
||||
"""
|
||||
@ -149,7 +149,7 @@ class ProxyKmipClient(object):
|
||||
self._is_open = False
|
||||
except Exception as e:
|
||||
self.logger.exception("could not close client connection", e)
|
||||
raise e
|
||||
raise
|
||||
|
||||
@is_connected
|
||||
def create(self, algorithm, length, operation_policy_name=None, name=None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user