From 0246c5bbda300ab883f403bf5f1ac94b18a31896 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Mon, 26 Jan 2015 13:39:46 -0800 Subject: [PATCH] Remove extra spaces from exception message Without this change, it prints with extra spaces -- e.g.: E elasticsearch.exceptions.ImproperlyConfigured: No defined connections, you need to specify at least one host. --- elasticsearch/connection_pool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elasticsearch/connection_pool.py b/elasticsearch/connection_pool.py index 2991a61b..346a884a 100644 --- a/elasticsearch/connection_pool.py +++ b/elasticsearch/connection_pool.py @@ -102,8 +102,8 @@ class ConnectionPool(object): avoid dog piling effect across processes """ if not connections: - raise ImproperlyConfigured("No defined connections, you need to \ - specify at least one host.") + raise ImproperlyConfigured("No defined connections, you need to " + "specify at least one host.") self.connection_opts = connections self.connections = [c for (c, opts) in connections] # remember original connection list for resurrect(force=True)