Skip to content

Commit 6a361a8

Browse files
committed
drop version check from coordinator - api_version() raises
1 parent 10aa4ba commit 6a361a8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

kafka/coordinator/base.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,9 +453,7 @@ def _send_join_group_request(self):
453453
for protocol, metadata in self.group_protocols()
454454
]
455455
version = self._client.api_version(JoinGroupRequest, max_version=2)
456-
if not version:
457-
raise Errors.KafkaError('JoinGroupRequest api requires 0.9+ brokers')
458-
elif version == 0:
456+
if version == 0:
459457
request = JoinGroupRequest[version](
460458
self.group_id,
461459
self.config['session_timeout_ms'],

0 commit comments

Comments
 (0)