2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-20 02:03:31 +00:00

Merge pull request #443 from tipabu/reraise

Reraise exceptions to preserve stack traces
This commit is contained in:
Peter Hamilton
2018-06-19 14:32:32 -04:00
committed by GitHub

View File

@@ -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,