Merge pull request #215 from CartoDB/bug_exception_mapzen_geocoder

Fix bug on exception raise for Mapzen geocoder config
This commit is contained in:
Carla 2016-07-07 08:58:33 +02:00 committed by GitHub
commit caf4fe8e23

View File

@ -144,7 +144,7 @@ class MapzenGeocoderConfig(ServiceConfig):
self._period_end_date = date_parse(self._redis_config[self.PERIOD_END_DATE]) self._period_end_date = date_parse(self._redis_config[self.PERIOD_END_DATE])
self._cost_per_hit = 0 self._cost_per_hit = 0
except Exception as e: except Exception as e:
raise ConfigException("Malformed config for Mapzen geocoder: {1}".format(key, e)) raise ConfigException("Malformed config for Mapzen geocoder: {0}".format(e))
@property @property
def service_type(self): def service_type(self):