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:
@@ -71,7 +71,7 @@ class SettingNamespaceSingleton(object):
|
||||
name='CONFIGURATION_FILEPATH'
|
||||
)
|
||||
|
||||
file_data = self.load_config_file(filepath=filepath)
|
||||
file_data = self.load_config_file(filepath=filepath) or {}
|
||||
self._cache_file_data = file_data
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user