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.
This commit is contained in:
Marc Abramowitz
2015-01-27 16:51:39 +01:00
committed by Honza Král
parent 02117ad29e
commit 0246c5bbda
+2 -2
View File
@@ -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)