config: SetValueAndSave ignore error if config section does not exist yet

This commit is contained in:
buengese 2019-11-09 00:05:33 +01:00 committed by Nick Craig-Wood
parent 9b5308144f
commit 5ddfa9f7f6
1 changed files with 1 additions and 1 deletions

View File

@ -575,7 +575,7 @@ func SetValueAndSave(name, key, value string) (err error) {
_, err = reloadedConfigFile.GetSection(name)
if err != nil {
// Section doesn't exist yet so ignore reload
return err
return nil
}
// Update the config file with the reloaded version
configFile = reloadedConfigFile