diff options
Diffstat (limited to 'kazoo/recipe/lock.py')
-rw-r--r-- | kazoo/recipe/lock.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kazoo/recipe/lock.py b/kazoo/recipe/lock.py index 6a50cfb..9bd5dc0 100644 --- a/kazoo/recipe/lock.py +++ b/kazoo/recipe/lock.py @@ -353,7 +353,8 @@ class Lock(object): for child in children: try: data, stat = self.client.get(self.path + "/" + child) - contenders.append(data.decode('utf-8')) + if data is not None: + contenders.append(data.decode('utf-8')) except NoNodeError: # pragma: nocover pass return contenders |