mirror of
https://github.com/rclone/rclone
synced 2024-11-20 21:27:33 +01:00
pikpak: fix fatal crash on startup with token that can't be refreshed
This commit is contained in:
parent
abb4f77568
commit
ee72554fb9
@ -561,6 +561,7 @@ func newFs(ctx context.Context, name, path string, m configmap.Mapper) (*Fs, err
|
|||||||
if strings.Contains(err.Error(), "invalid_grant") {
|
if strings.Contains(err.Error(), "invalid_grant") {
|
||||||
return f, f.reAuthorize(ctx)
|
return f, f.reAuthorize(ctx)
|
||||||
}
|
}
|
||||||
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return f, nil
|
return f, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user