From db80d389e0bcb3eae80f9a736d275715ce7d5fe7 Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Fri, 21 Oct 2016 15:38:56 +0200 Subject: [PATCH] Do not require org geocoder and isolines quota to be present --- .../cartodb_services/cartodb_services/metrics/config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/lib/python/cartodb_services/cartodb_services/metrics/config.py b/server/lib/python/cartodb_services/cartodb_services/metrics/config.py index 796c447..8c739fa 100644 --- a/server/lib/python/cartodb_services/cartodb_services/metrics/config.py +++ b/server/lib/python/cartodb_services/cartodb_services/metrics/config.py @@ -611,8 +611,10 @@ class ServicesRedisConfig: if not org_config: raise ConfigException("""There is no organization config available. Please check your configuration.'""") else: - user_config[self.QUOTA_KEY] = org_config[self.QUOTA_KEY] - user_config[self.ISOLINES_QUOTA_KEY] = org_config[self.ISOLINES_QUOTA_KEY] + if self.QUOTA_KEY in org_config: + user_config[self.QUOTA_KEY] = org_config[self.QUOTA_KEY] + if self.ISOLINES_QUOTA_KEY in org_config: + user_config[self.ISOLINES_QUOTA_KEY] = org_config[self.ISOLINES_QUOTA_KEY] if self.ROUTING_QUOTA_KEY in org_config: user_config[self.ROUTING_QUOTA_KEY] = org_config[self.ROUTING_QUOTA_KEY] if self.OBS_SNAPSHOT_QUOTA_KEY in org_config: