Typo in sniff_hosts error message

This commit is contained in:
Bruno Renié
2014-04-30 18:25:16 +02:00
parent c24e7c9908
commit df25a01638
+2 -2
View File
@@ -180,7 +180,7 @@ class Transport(object):
except (ConnectionError, SerializationError): except (ConnectionError, SerializationError):
pass pass
else: else:
raise TransportError("N/A", "Enable to sniff hosts.") raise TransportError("N/A", "Unable to sniff hosts.")
except: except:
# keep the previous value on error # keep the previous value on error
self.last_sniff = previous_sniff self.last_sniff = previous_sniff
@@ -203,7 +203,7 @@ class Transport(object):
# we weren't able to get any nodes, maybe using an incompatible # we weren't able to get any nodes, maybe using an incompatible
# transport_schema or host_info_callback blocked all - raise error. # transport_schema or host_info_callback blocked all - raise error.
if not hosts: 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) self.set_connections(hosts)