We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19c36ce commit 1aa0683Copy full SHA for 1aa0683
lib/redis/client.rb
@@ -597,7 +597,7 @@ def sentinel_detect
597
raise CannotConnectError, "No sentinels available."
598
rescue Redis::CommandError => err
599
# this feature is only available starting with Redis 5.0.1
600
- raise unless err.message.start_with?('ERR unknown command `auth`')
+ raise if err.message !~ /ERR unknown command (`|')auth(`|')/
601
@options[:password] = DEFAULTS.fetch(:password)
602
retry
603
end
0 commit comments