forked from TrueCloudLab/rclone
pikpak: fix fatal crash on startup with token that can't be refreshed
This commit is contained in:
parent
abb4f77568
commit
ee72554fb9
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue