From 380e739c81c023463d1d3d550ac95691c145f447 Mon Sep 17 00:00:00 2001 From: Michael Penick Date: Mon, 18 Nov 2013 15:55:40 -0700 Subject: [PATCH] Not checking None result --- cassandra/cluster.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cassandra/cluster.py b/cassandra/cluster.py index a78fca66..73aac336 100644 --- a/cassandra/cluster.py +++ b/cassandra/cluster.py @@ -847,7 +847,9 @@ class Session(object): # create connection pools in parallel futures = [] for host in hosts: - futures.append(self.add_or_renew_pool(host, is_host_addition=False)) + future = self.add_or_renew_pool(host, is_host_addition=False); + if future is not None: + futures.append(future) for future in futures: future.result()