File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,9 @@ class BrokerResponseError(KafkaError):
73
73
74
74
def __str__ (self ):
75
75
"""Add errno to standard KafkaError str"""
76
- return '[Error {0}] {1}: {2} ' .format (
76
+ return '[Error {0}] {1}' .format (
77
77
self .errno ,
78
- self .__class__ .__name__ ,
79
- super (KafkaError , self ).__str__ ()) # pylint: disable=bad-super-call
78
+ super (BrokerResponseError , self ).__str__ ())
80
79
81
80
82
81
class NoError (BrokerResponseError ):
@@ -154,6 +153,7 @@ class BrokerNotAvailableError(BrokerResponseError):
154
153
description = ('This is not a client facing error and is used mostly by'
155
154
' tools when a broker is not alive.' )
156
155
156
+
157
157
class ReplicaNotAvailableError (BrokerResponseError ):
158
158
errno = 9
159
159
message = 'REPLICA_NOT_AVAILABLE'
You can’t perform that action at this time.
0 commit comments