mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-04-27 15:07:43 +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 {
|
func computeVintage(c appengine.Context, userId int, userLogin string, repoId int, repoOwnerLogin string, repoName string) error {
|
||||||
account, err := getAccount(c, userId)
|
account, err := getAccount(c, userId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.Errorf("Could not load account %d: %s", userId, err.Error())
|
c.Errorf("Could not load account %d: %s. Presumed deleted, aborting computing vintage for %s/%s", userId, err.Error(), repoOwnerLogin, repoName)
|
||||||
return err
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
oauthTransport := githubOAuthTransport(c)
|
oauthTransport := githubOAuthTransport(c)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue