From 490957ec3bb560de2e0ff8d3e1b5357e23fbaa8c Mon Sep 17 00:00:00 2001 From: yystopf Date: Thu, 20 Jan 2022 09:41:25 +0800 Subject: [PATCH] fix: contributor error rescue --- app/controllers/repositories_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 5ebc00b3f..e83bd0e79 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -152,6 +152,8 @@ class RepositoriesController < ApplicationController else @contributors = Gitea::Repository::Contributors::GetService.call(@owner, @repository.identifier) end + rescue + @contributors = [] end def edit