Merge branch 'cassandra-3.0' into cassandra-3.11

This commit is contained in:
Stefan Miklosovic 2023-09-05 16:49:23 +02:00
commit caad2f24f9
No known key found for this signature in database
GPG Key ID: 32F35CB2F546D93E
1 changed files with 1 additions and 1 deletions

View File

@ -556,7 +556,7 @@ class Shell(cmd.Cmd):
def check_build_versions(self):
baseversion = self.connection_versions['build']
extra = baseversion.rfind('-')
if extra:
if extra != -1:
baseversion = baseversion[0:extra]
if baseversion != build_version:
print("WARNING: cqlsh was built against {}, but this server is {}. All features may not work!".format(build_version, baseversion))