From 48034e3b3fb678ea72d8b38c372394918ba69282 Mon Sep 17 00:00:00 2001 From: Mihai Parparita Date: Sat, 20 Dec 2014 21:54:42 -0800 Subject: [PATCH] Don't retry vintage calculation if the repo can't be loaded. The user has most likely deleted their account. --- app/repos.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/repos.go b/app/repos.go index da7bb32..6843b2a 100644 --- a/app/repos.go +++ b/app/repos.go @@ -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)