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:
|
||||
|
||||
Reference in New Issue
Block a user