Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kafka/consumer/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ def position(self, partition, timeout_ms=None):
# batch update fetch positions for any partitions without a valid position
if self._update_fetch_positions(timeout_ms=timer.timeout_ms):
position = self._subscription.assignment[partition].position
elif timer.expired:
if timer.expired:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if position is None and time.expired ?

return None
else:
return position.offset
Expand Down
Loading