Skip to content

Commit

Permalink
Merge pull request #342 from nfm/rescue-from-all-redis-errors
Browse files Browse the repository at this point in the history
Rescue from Redis::BaseError in #ab_test
  • Loading branch information
andrew committed Oct 20, 2015
2 parents de03148 + 7406686 commit ffe35d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/split/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def ab_test(metric_descriptor, control = nil, *alternatives)
else
control_variable(experiment.control)
end
rescue Errno::ECONNREFUSED, Redis::CannotConnectError, SocketError => e
rescue Errno::ECONNREFUSED, Redis::BaseError, SocketError => e
raise(e) unless Split.configuration.db_failover
Split.configuration.db_failover_on_db_error.call(e)

Expand Down

0 comments on commit ffe35d6

Please sign in to comment.