diff options
| author | Julien Danjou <julien@danjou.info> | 2016-12-02 13:43:33 +0100 |
|---|---|---|
| committer | Julien Danjou <julien@danjou.info> | 2016-12-07 23:40:35 +0100 |
| commit | 04866ab9c31f499b612aac17d25584672f832758 (patch) | |
| tree | 50259f05cdfbf569548955b30eacbc990d99d553 /tooz/drivers/etcd.py | |
| parent | bb20e9f8a8a7a6e61d923848f1b4773b5ac37ace (diff) | |
| download | tooz-04866ab9c31f499b612aac17d25584672f832758.tar.gz | |
Move ToozError to root module
Change-Id: I73b1c5a37b75991f79d8a5fb383c605689503333
Diffstat (limited to 'tooz/drivers/etcd.py')
| -rw-r--r-- | tooz/drivers/etcd.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tooz/drivers/etcd.py b/tooz/drivers/etcd.py index ee50860..f1cc9f8 100644 --- a/tooz/drivers/etcd.py +++ b/tooz/drivers/etcd.py @@ -21,6 +21,7 @@ from oslo_utils import timeutils import requests import six +import tooz from tooz import coordination from tooz import locking from tooz import utils @@ -38,7 +39,7 @@ def _translate_failures(func): return func(*args, **kwargs) except ValueError as e: # Typically json decoding failed for some reason. - coordination.raise_with_cause(coordination.ToozError, + coordination.raise_with_cause(tooz.ToozError, encodeutils.exception_to_unicode(e), cause=e) except requests.exceptions.RequestException as e: |
