mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-03-25 09:25:49 +00:00
Don't retry vintage calculation if the repo can't be loaded.
The user has most likely deleted their account.
This commit is contained in:
parent
33617ef0a1
commit
48034e3b3f
1 changed files with 2 additions and 2 deletions
|
|
@ -31,8 +31,8 @@ var computeVintageFunc *delay.Function
|
|||
func computeVintage(c appengine.Context, userId int, userLogin string, repoId int, repoOwnerLogin string, repoName string) error {
|
||||
account, err := getAccount(c, userId)
|
||||
if err != nil {
|
||||
c.Errorf("Could not load account %d: %s", userId, err.Error())
|
||||
return err
|
||||
c.Errorf("Could not load account %d: %s. Presumed deleted, aborting computing vintage for %s/%s", userId, err.Error(), repoOwnerLogin, repoName)
|
||||
return nil
|
||||
}
|
||||
|
||||
oauthTransport := githubOAuthTransport(c)
|
||||
|
|
|
|||
Loading…
Reference in a new issue