Ignore FindRecentlyPushedNewBranches err (#31164)

Fix #31163
This commit is contained in:
wxiaoguang
2024-05-30 10:24:22 +08:00
repo.diff.committed_by GitHub
repo.diff.parent ce751761ce
repo.diff.commit d612a24e3e

repo.diff.view_file

@@ -1047,8 +1047,7 @@ func renderHomeCode(ctx *context.Context) {
baseRepoPerm.CanRead(unit_model.TypePullRequests) {
ctx.Data["RecentlyPushedNewBranches"], err = git_model.FindRecentlyPushedNewBranches(ctx, ctx.Doer, opts)
if err != nil {
ctx.ServerError("FindRecentlyPushedNewBranches", err)
return
log.Error("FindRecentlyPushedNewBranches failed: %v", err)
}
}
}