Savesettings command fixes
Don't error out when saving a config if no previous config exists. Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -253,7 +253,7 @@ class Setting(object):
|
||||
if not cls._config_file_cache:
|
||||
cls._config_file_cache = read_configuration_file(
|
||||
filepath=settings.CONFIGURATION_FILEPATH
|
||||
)
|
||||
) or {}
|
||||
return cls._config_file_cache
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user