Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion redisvl/redis/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,9 @@ def validate_sync_redis(
redis_client.client_setinfo("LIB-NAME", _lib_name)
except ResponseError:
# Fall back to a simple log echo
redis_client.echo(_lib_name)
# For RedisCluster, echo is not available
if hasattr(redis_client, "echo"):
await redis_client.echo(_lib_name)

# Get list of modules
installed_modules = RedisConnectionFactory.get_modules(redis_client)
Expand All @@ -423,6 +425,8 @@ async def validate_async_redis(
except ResponseError:
# Fall back to a simple log echo
await redis_client.echo(_lib_name)
if hasattr(redis_client, "echo"):
await redis_client.echo(_lib_name)

# Get list of modules
installed_modules = await RedisConnectionFactory.get_modules_async(redis_client)
Expand Down
Loading