Skip to content

Commit

Permalink
[PATCH] Fix invalid Exception handling causing the event loop to term…
Browse files Browse the repository at this point in the history
…inate (Issue #6)
  • Loading branch information
patkivikram authored and ask committed Aug 30, 2019
1 parent 812beee commit a325ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiokafka/producer/sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a325ed4

Please sign in to comment.