From df25a0163861a322af41a26540cf8da710f9639d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Reni=C3=A9?= Date: Wed, 30 Apr 2014 18:25:16 +0200 Subject: [PATCH] Typo in sniff_hosts error message --- elasticsearch/transport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elasticsearch/transport.py b/elasticsearch/transport.py index dfd371eb..76ac67da 100644 --- a/elasticsearch/transport.py +++ b/elasticsearch/transport.py @@ -180,7 +180,7 @@ class Transport(object): except (ConnectionError, SerializationError): pass else: - raise TransportError("N/A", "Enable to sniff hosts.") + raise TransportError("N/A", "Unable to sniff hosts.") except: # keep the previous value on error self.last_sniff = previous_sniff @@ -203,7 +203,7 @@ class Transport(object): # we weren't able to get any nodes, maybe using an incompatible # transport_schema or host_info_callback blocked all - raise error. if not hosts: - raise TransportError("N/A", "Enable to sniff hosts - no viable hosts found.") + raise TransportError("N/A", "Unable to sniff hosts - no viable hosts found.") self.set_connections(hosts)