summaryrefslogtreecommitdiff
path: root/kazoo/recipe/party.py
diff options
context:
space:
mode:
authorBen Bangert <ben@groovie.org>2012-08-28 15:43:42 -0700
committerBen Bangert <ben@groovie.org>2012-08-28 15:43:42 -0700
commit72c90e919096c852310325f7d16d1d8b78f1e411 (patch)
tree41be87b192de269ddfa7d8edcfbe3f8749468e2b /kazoo/recipe/party.py
parent0c900ce5508be546d1f8efb1217f78a0b71cdec1 (diff)
downloadkazoo-72c90e919096c852310325f7d16d1d8b78f1e411.tar.gz
Most of the main refactor complete, basic connection and ping handling working with start/stop.
Diffstat (limited to 'kazoo/recipe/party.py')
-rw-r--r--kazoo/recipe/party.py8
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):