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:
Roberto Rosario
2019-12-03 18:10:19 -04:00
parent 2eac1b1c7d
commit 4cc2522be6
2 changed files with 2 additions and 2 deletions

View File

@@ -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