Skip to content

Commit 01e9745

Browse files
committed
Specific rescue.
Thanks @beedub.
1 parent 768ba07 commit 01e9745

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redis/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def check(client)
476476
# recently and this client should work with old stuff.
477477
begin
478478
role = client.call([:role])[0]
479-
rescue
479+
rescue Redis::CommandError
480480
# Assume the test is passed if we can't get a reply from ROLE...
481481
role = @role
482482
end

0 commit comments

Comments
 (0)