Merge pull request #53 from mpenick/master

Not checking None result
This commit is contained in:
Tyler Hobbs
2013-11-19 09:17:45 -08:00

View File

@@ -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()