mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-03-25 09:25:49 +00:00
Ignore 403s when computing vintages.
This commit is contained in:
parent
fc94f2ff06
commit
00e19e79b4
1 changed files with 2 additions and 2 deletions
|
|
@ -40,8 +40,8 @@ func computeVintage(c appengine.Context, userId int, userLogin string, repoId in
|
|||
githubClient := github.NewClient(oauthTransport.Client())
|
||||
|
||||
repo, response, err := githubClient.Repositories.Get(repoOwnerLogin, repoName)
|
||||
if response.StatusCode == 404 {
|
||||
c.Warningf("Got a 404 when trying to look up %s/%s (%d)", repoOwnerLogin, repoName, repoId)
|
||||
if response.StatusCode == 403 || response.StatusCode == 404 {
|
||||
c.Warningf("Got a %d when trying to look up %s/%s (%d)", response.StatusCode, repoOwnerLogin, repoName, repoId)
|
||||
_, err = datastore.Put(c, getVintageKey(c, userId, repoId), &RepoVintage{
|
||||
UserId: userId,
|
||||
RepoId: repoId,
|
||||
|
|
|
|||
Loading…
Reference in a new issue