summaryrefslogtreecommitdiff
path: root/kafka/protocol/commit.py
diff options
context:
space:
mode:
authorJeff Widman <jeff@jeffwidman.com>2017-12-21 14:48:15 -0800
committerDana Powers <dana.powers@gmail.com>2017-12-21 14:48:15 -0800
commitc49ae90b105fad958dbc60499aeedd27ff52416c (patch)
tree645709cf3930a330f1baec64679b24225e75d415 /kafka/protocol/commit.py
parentad024d1e897dbf16bd629fa63895bd7af4a8d959 (diff)
downloadkafka-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