diff options
Diffstat (limited to 'kazoo/recipe/party.py')
-rw-r--r-- | kazoo/recipe/party.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kazoo/recipe/party.py b/kazoo/recipe/party.py index 5bba798..00e828f 100644 --- a/kazoo/recipe/party.py +++ b/kazoo/recipe/party.py @@ -5,7 +5,7 @@ used for determining members of a party. """ import uuid -from kazoo.exceptions import NodeExistsException, NoNodeException +from kazoo.exceptions import NodeExistsError, NoNodeError class BaseParty(object): @@ -40,7 +40,7 @@ class BaseParty(object): try: self.client.create(self.create_path, self.data, ephemeral=True) self.participating = True - except NodeExistsException: + except NodeExistsError: # node was already created, perhaps we are recovering from a # suspended connection self.participating = True @@ -52,7 +52,7 @@ class BaseParty(object): def _inner_leave(self): try: self.client.delete(self.create_path) - except NoNodeException: + except NoNodeError: return False return True @@ -83,7 +83,7 @@ class Party(BaseParty): d, _ = self.client.retry(self.client.get, self.path + "/" + child) yield d - except NoNodeException: + except NoNodeError: pass def _get_children(self): |