Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

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

buengese5ddfa9f7f607
diff --git a/fs/config/config.go b/fs/config/config.go
index 7f8ac827c..0b896b36b 100644
--- a/fs/config/config.go
+++ b/fs/config/config.go
@@ -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