summaryrefslogtreecommitdiff
path: root/kazoo/retry.py
diff options
context:
space:
mode:
authorBen Bangert <ben@groovie.org>2012-06-06 15:32:36 -0700
committerBen Bangert <ben@groovie.org>2012-06-06 15:32:36 -0700
commit92a46017ed91016ec7f284fef1bb12f7f13b878f (patch)
treec7056f2d11d6586f61ea27e9ff9e13352ea36b35 /kazoo/retry.py
parent8b476c66841f520725821c659d545abad1337cb2 (diff)
downloadkazoo-92a46017ed91016ec7f284fef1bb12f7f13b878f.tar.gz
Handle zkpython binding bugs properly for older versions of the lib.
Diffstat (limited to 'kazoo/retry.py')
-rw-r--r--kazoo/retry.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/kazoo/retry.py b/kazoo/retry.py
index b5a52a0..60381ce 100644
--- a/kazoo/retry.py
+++ b/kazoo/retry.py
@@ -1,6 +1,7 @@
from zookeeper import (
ClosingException,
ConnectionLossException,
+ InvalidStateException,
OperationTimeoutException,
SessionExpiredException
)
@@ -17,6 +18,12 @@ class KazooRetry(object):
ConnectionLossException,
OperationTimeoutException,
SessionExpiredException,
+
+ # Occurs when a command is run on a session handle that expired, if it
+ # manages to run exactly when it expired but before the handle was
+ # removed for reconnection
+ InvalidStateException,
+
ForceRetryError
)