File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def info(self):
32
32
return self .args [2 ]
33
33
34
34
def __str__ (self ):
35
- return 'TransportError(%d , %r)' % (self .status_code , self .error )
35
+ return 'TransportError(%s , %r)' % (self .status_code , self .error )
36
36
37
37
38
38
class ConnectionError (TransportError ):
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ def sniff_hosts(self):
175
175
except (ConnectionError , SerializationError ):
176
176
pass
177
177
else :
178
- raise TransportError ("Enable to sniff hosts." )
178
+ raise TransportError ("N/A" , " Enable to sniff hosts." )
179
179
except :
180
180
# keep the previous value on error
181
181
self .last_sniff = previous_sniff
@@ -198,7 +198,7 @@ def sniff_hosts(self):
198
198
# we weren't able to get any nodes, maybe using an incompatible
199
199
# transport_schema or host_info_callback blocked all - raise error.
200
200
if not hosts :
201
- raise TransportError ("Enable to sniff hosts - no viable hosts found." )
201
+ raise TransportError ("N/A" , " Enable to sniff hosts - no viable hosts found." )
202
202
203
203
self .set_connections (hosts )
204
204
You can’t perform that action at this time.
0 commit comments