From d74e87e5fa876df13ea0582a1565973aeca171b9 Mon Sep 17 00:00:00 2001 From: Andy Stark Date: Fri, 20 Sep 2024 11:55:42 +0100 Subject: [PATCH] DOC-4202 fixed compilation errors --- src/test/java/io/redis/examples/QueryEmExample.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/io/redis/examples/QueryEmExample.java b/src/test/java/io/redis/examples/QueryEmExample.java index b0eada7656..e7f8cc99c9 100644 --- a/src/test/java/io/redis/examples/QueryEmExample.java +++ b/src/test/java/io/redis/examples/QueryEmExample.java @@ -25,12 +25,12 @@ public class QueryEmExample { @Test public void run() { - UnifiedJedis jedis = new UnifiedJedis("redis://localhost:6379") + UnifiedJedis jedis = new UnifiedJedis("redis://localhost:6379"); //REMOVE_START // Clear any keys here before using them in tests. - jedis.ftDropIndex("idx:bicycle"); - jedis.ftDropIndex("idx:email"); + try {jedis.ftDropIndex("idx:bicycle");} catch (JedisDataException j){} + try {jedis.ftDropIndex("idx:email");} catch (JedisDataException j){} //REMOVE_END SchemaField[] schema = {