From ee72554fb944ebfaaa50804e7cfcce5db1ec2783 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 8 Nov 2024 17:39:36 +0000 Subject: [PATCH] pikpak: fix fatal crash on startup with token that can't be refreshed --- backend/pikpak/pikpak.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/pikpak/pikpak.go b/backend/pikpak/pikpak.go index b70ecf92a..f2a1390f1 100644 --- a/backend/pikpak/pikpak.go +++ b/backend/pikpak/pikpak.go @@ -561,6 +561,7 @@ func newFs(ctx context.Context, name, path string, m configmap.Mapper) (*Fs, err if strings.Contains(err.Error(), "invalid_grant") { return f, f.reAuthorize(ctx) } + return nil, err } return f, nil