diff options
author | Jeff Widman <jeff@jeffwidman.com> | 2017-12-21 14:48:15 -0800 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2017-12-21 14:48:15 -0800 |
commit | c49ae90b105fad958dbc60499aeedd27ff52416c (patch) | |
tree | 645709cf3930a330f1baec64679b24225e75d415 /kafka/protocol/commit.py | |
parent | ad024d1e897dbf16bd629fa63895bd7af4a8d959 (diff) | |
download | kafka-python-c49ae90b105fad958dbc60499aeedd27ff52416c.tar.gz |
Raise non-API exceptions (#1316)
The original intent was to catch API exceptions (errors returned by the
broker when trying to produce a message) and delegate them to the
messages' futures. This is copied from the Java producer.
However, we were accidentally catching all exceptions, thereby hiding
exceptions from users unless they explicitly check the result of the
future. Much better to raise client-side errors directly in the
foreground so the user is immediately aware of them and can decide how
to handle.
Fix #1274
Diffstat (limited to 'kafka/protocol/commit.py')
0 files changed, 0 insertions, 0 deletions