From cfedc0075d6baefcf67dd91c2253d8f4f978cb64 Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Wed, 23 Jul 2014 13:12:44 -0500 Subject: [PATCH] cqlsh: fix message when zero rows are returned Patch by brandonwilliams, reviewed by thobbs for CASSANDRA-7580 --- bin/cqlsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cqlsh b/bin/cqlsh index 1798d3f9b7..fb6fb5f350 100755 --- a/bin/cqlsh +++ b/bin/cqlsh @@ -922,7 +922,7 @@ class Shell(cmd.Cmd): self.writeresult("") if rows : self.print_static_result(rows) - self.writeresult("(%d rows)" % len(rows)) + self.writeresult("(%d rows)" % len(rows or [])) self.writeresult("") if self.decoding_errors: