Skip to content

Commit f23e166

Browse files
committed
Change missing ConnectionError to KafkaConnectionError
1 parent 9c41d68 commit f23e166

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafka/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def failed_payloads(payloads):
406406
host, port, afi = get_ip_port_afi(broker.host)
407407
try:
408408
conn = self._get_conn(host, broker.port, afi, broker.nodeId)
409-
except ConnectionError:
409+
except KafkaConnectionError:
410410
failed_payloads(payloads)
411411

412412
else:

0 commit comments

Comments
 (0)