Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
verajohne committed Sep 6, 2021
1 parent 4eafdfe commit ef27116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/redis/client.rb
Expand Up @@ -119,7 +119,7 @@ def connect
if username
begin
call [:auth, username, password]
rescue => err # Likely on Redis < 6
rescue CommandError => err # Likely on Redis < 6
if err.message.match?(/ERR wrong number of arguments for \'auth\' command/)
call [:auth, password]
else
Expand Down

0 comments on commit ef27116

Please sign in to comment.