lib/redis_failover/node.rb in redis_failover-0.9.3 vs lib/redis_failover/node.rb in redis_failover-0.9.4
- old
+ new
@@ -173,16 +173,16 @@
redis = nil
Timeout.timeout(MAX_OP_WAIT_TIME) do
redis = new_client
yield redis
end
- rescue => ex
+ rescue Exception => ex
raise NodeUnavailableError, "#{ex.class}: #{ex.message}", ex.backtrace
ensure
if redis
begin
redis.client.disconnect
- rescue => ex
+ rescue Exception => ex
raise NodeUnavailableError, "#{ex.class}: #{ex.message}", ex.backtrace
end
end
end
end