Skip to content

Commit a325ed4

Browse files
patkivikramask
authored andcommitted
[PATCH] Fix invalid Exception handling causing the event loop to terminate (Issue #6)
1 parent 812beee commit a325ed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aiokafka/producer/sender.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def _sender_routine(self):
175175
except (ProducerFenced, OutOfOrderSequenceNumber,
176176
TransactionalIdAuthorizationFailed):
177177
raise
178-
except Exception: # pragma: no cover
178+
except Exception as exc: # pragma: no cover
179179
log.error("Unexpected error in sender routine", exc_info=True)
180180
if self._on_irrecoverable_error:
181181
res = self._on_irrecoverable_error(exc)

0 commit comments

Comments
 (0)