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.
2 parents 19c36ce + 1aa0683 commit d63bdc2Copy full SHA for d63bdc2
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