diff --git a/lib/rack/attack.rb b/lib/rack/attack.rb index cd5baeeb..7e4b3ce6 100644 --- a/lib/rack/attack.rb +++ b/lib/rack/attack.rb @@ -137,7 +137,7 @@ def call(env) def allowed_errors errors = [] errors << Dalli::DalliError if defined?(Dalli) - errors << Redis::BaseError if defined?(Redis) + errors << Redis::BaseConnectionError if defined?(Redis) errors end end