From 44bd90ab80ba43e4ac319d83e488743dc11a983a Mon Sep 17 00:00:00 2001 From: Dana Powers Date: Wed, 29 Apr 2026 07:07:22 -0700 Subject: [PATCH] KafkaError subclass Exception not RuntimeError --- kafka/errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kafka/errors.py b/kafka/errors.py index 5dd8ec9f1..bea1c814f 100644 --- a/kafka/errors.py +++ b/kafka/errors.py @@ -2,7 +2,7 @@ import sys -class KafkaError(RuntimeError): +class KafkaError(Exception): retriable = False # whether metadata should be refreshed on error invalid_metadata = False