Skip to content

Commit

Permalink
fix: github users org api may report 404 (#7538)
Browse files Browse the repository at this point in the history
  • Loading branch information
klesh committed May 29, 2024
1 parent a9ac7ab commit 60b0d1e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backend/plugins/github/tasks/account_org_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ func CollectAccountOrg(taskCtx plugin.SubTaskContext) errors.Error {
res.Body.Close()
return []json.RawMessage{body}, nil
},
AfterResponse: func(res *http.Response) errors.Error {
if res.StatusCode == http.StatusNotFound {
return api.ErrIgnoreAndContinue
}
return nil
},
})

if err != nil {
Expand Down

0 comments on commit 60b0d1e

Please sign in to comment.