Commit 3341da9a authored by Amos Wenger's avatar Amos Wenger

In getString, ignore error if key doesn't exist, cf. https://github.com/itchio/itch/issues/2129

parent 3bb5de5d
Pipeline #12427 passed with stage
in 34 seconds
......@@ -3,6 +3,8 @@
package fuji
import (
"os"
"github.com/pkg/errors"
"golang.org/x/sys/windows/registry"
)
......@@ -51,6 +53,9 @@ func getRegistryString(s *Settings, name string) (string, error) {
ret, _, err := key.GetStringValue(name)
if err != nil {
if os.IsNotExist(err) {
return "", nil
}
return "", errors.WithStack(err)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment