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:
committed by
Honza Král
parent
02117ad29e
commit
0246c5bbda
@@ -102,8 +102,8 @@ class ConnectionPool(object):
|
|||||||
avoid dog piling effect across processes
|
avoid dog piling effect across processes
|
||||||
"""
|
"""
|
||||||
if not connections:
|
if not connections:
|
||||||
raise ImproperlyConfigured("No defined connections, you need to \
|
raise ImproperlyConfigured("No defined connections, you need to "
|
||||||
specify at least one host.")
|
"specify at least one host.")
|
||||||
self.connection_opts = connections
|
self.connection_opts = connections
|
||||||
self.connections = [c for (c, opts) in connections]
|
self.connections = [c for (c, opts) in connections]
|
||||||
# remember original connection list for resurrect(force=True)
|
# remember original connection list for resurrect(force=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user