Skip to content

Commit 636778a

Browse files
committed
Make commit() check for errors instead of simply assert no error
1 parent 7a7a818 commit 636778a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafka/consumer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def commit(self, partitions=None):
152152

153153
resps = self.client.send_offset_commit_request(self.group, reqs)
154154
for resp in resps:
155-
assert resp.error == 0
155+
kafka.common.check_error(resp)
156156

157157
self.count_since_commit = 0
158158

0 commit comments

Comments
 (0)