From a325ed4c39b65d582ed624f2bf0e399da2a74fb1 Mon Sep 17 00:00:00 2001 From: Vikram Patki 24489 Date: Thu, 29 Aug 2019 14:00:30 -0700 Subject: [PATCH] [PATCH] Fix invalid Exception handling causing the event loop to terminate (Issue #6) --- aiokafka/producer/sender.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiokafka/producer/sender.py b/aiokafka/producer/sender.py index d9b57ba..85272ed 100644 --- a/aiokafka/producer/sender.py +++ b/aiokafka/producer/sender.py @@ -175,7 +175,7 @@ def _sender_routine(self): except (ProducerFenced, OutOfOrderSequenceNumber, TransactionalIdAuthorizationFailed): raise - except Exception: # pragma: no cover + except Exception as exc: # pragma: no cover log.error("Unexpected error in sender routine", exc_info=True) if self._on_irrecoverable_error: res = self._on_irrecoverable_error(exc)