From 65ee0d082caac70de704852deed52b9dd52120e6 Mon Sep 17 00:00:00 2001 From: Stefan Miklosovic Date: Tue, 5 Sep 2023 16:47:23 +0200 Subject: [PATCH] Ninja fix for CASSANDRA-18745 --- bin/cqlsh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cqlsh.py b/bin/cqlsh.py index d4b3bfc473..f599185506 100644 --- a/bin/cqlsh.py +++ b/bin/cqlsh.py @@ -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))