From ea96d78f98543bea06b1b574a66d1d734d5218ba Mon Sep 17 00:00:00 2001 From: lahoucine BENLAHMR Date: Thu, 6 Feb 2014 01:13:39 +0100 Subject: [PATCH] Fixes TypeError in _leave_group_handler When catching NoNondeError exception In the _leave_group_handler function, Missing brackets in string formating of MemberNotJoined exception message raise a TypeError exception with the message "TypeError: not enough arguments for format string" Change-Id: I908a783a6ce912d5bfe6be33288d3b1a3ea93ab3 --- tooz/drivers/zookeeper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooz/drivers/zookeeper.py b/tooz/drivers/zookeeper.py index d3fa981e..d68afc40 100644 --- a/tooz/drivers/zookeeper.py +++ b/tooz/drivers/zookeeper.py @@ -85,7 +85,7 @@ class BaseZooKeeperDriver(coordination.CoordinationDriver): raise coordination.MemberNotJoined("member '%s' has not joined " "the group '%s' or the group " "has not been created" % - member_id, group_id) + (member_id, group_id)) except exceptions.ZookeeperError as e: raise coordination.ToozError(str(e))