diff --git a/lib/cartodb/carto_data.js b/lib/cartodb/carto_data.js index 5ad4723c..83b9933b 100644 --- a/lib/cartodb/carto_data.js +++ b/lib/cartodb/carto_data.js @@ -232,8 +232,7 @@ module.exports = function() { redisClient[redisFunc.toUpperCase()].apply(redisClient, redisArgs); }, function releaseRedisClient(err, data) { - if (err) throw err; - redis_pool.release(db, redisClient); + if ( ! _.isUndefined(redisClient) ) redis_pool.release(db, redisClient); callback(err, data); } );