Better than lower, change to empty string if not provider setting in redis
This commit is contained in:
@@ -537,11 +537,11 @@ class ServicesRedisConfig:
|
||||
"rails:users:{0}".format(username))
|
||||
# Not all the users have the provider key yet
|
||||
if not self.GEOCODER_PROVIDER_KEY in user_config:
|
||||
user_config[self.GEOCODER_PROVIDER_KEY] = None
|
||||
user_config[self.GEOCODER_PROVIDER_KEY] = ''
|
||||
if not self.ISOLINES_PROVIDER_KEY in user_config:
|
||||
user_config[self.ISOLINES_PROVIDER_KEY] = None
|
||||
user_config[self.ISOLINES_PROVIDER_KEY] = ''
|
||||
if not self.ROUTING_PROVIDER_KEY in user_config:
|
||||
user_config[self.ROUTING_PROVIDER_KEY] = None
|
||||
user_config[self.ROUTING_PROVIDER_KEY] = ''
|
||||
if not user_config:
|
||||
raise ConfigException("""There is no user config available. Please check your configuration.'""")
|
||||
elif orgname:
|
||||
|
||||
@@ -10,7 +10,7 @@ from setuptools import setup, find_packages
|
||||
setup(
|
||||
name='cartodb_services',
|
||||
|
||||
version='0.7.2.1',
|
||||
version='0.7.2.2',
|
||||
|
||||
description='CartoDB Services API Python Library',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user