mirror of
https://github.com/OpenKMIP/PyKMIP.git
synced 2025-07-05 13:14: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
|
self._is_open = True
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.exception("could not open client connection", e)
|
self.logger.exception("could not open client connection", e)
|
||||||
raise e
|
raise
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
"""
|
"""
|
||||||
@ -149,7 +149,7 @@ class ProxyKmipClient(object):
|
|||||||
self._is_open = False
|
self._is_open = False
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.exception("could not close client connection", e)
|
self.logger.exception("could not close client connection", e)
|
||||||
raise e
|
raise
|
||||||
|
|
||||||
@is_connected
|
@is_connected
|
||||||
def create(self, algorithm, length, operation_policy_name=None, name=None,
|
def create(self, algorithm, length, operation_policy_name=None, name=None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user