From cc64d4d2b23fd98f3f8655eff58d810ffaf4bcae Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 30 May 2024 14:24:14 +0800 Subject: [PATCH] Ignore FindRecentlyPushedNewBranches err (#31164) (#31171) Backport #31164 --- routers/web/repo/view.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/routers/web/repo/view.go b/routers/web/repo/view.go index e1498c0d581e..386ef7be5ce8 100644 --- a/routers/web/repo/view.go +++ b/routers/web/repo/view.go @@ -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) } } }