Skip to content

Commit 0246c5b

Browse files
msabramohonzakral
authored andcommitted
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.
1 parent 02117ad commit 0246c5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elasticsearch/connection_pool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def __init__(self, connections, dead_timeout=60, timeout_cutoff=5,
102102
avoid dog piling effect across processes
103103
"""
104104
if not connections:
105-
raise ImproperlyConfigured("No defined connections, you need to \
106-
specify at least one host.")
105+
raise ImproperlyConfigured("No defined connections, you need to "
106+
"specify at least one host.")
107107
self.connection_opts = connections
108108
self.connections = [c for (c, opts) in connections]
109109
# remember original connection list for resurrect(force=True)

0 commit comments

Comments
 (0)