Ninja fix for CASSANDRA-18745

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

View File

@ -822,7 +822,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))