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:
Mihai Parparita 2014-12-20 21:54:42 -08:00
parent 33617ef0a1
commit 48034e3b3f

View file

@ -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)