Skip to content
Snippets Groups Projects
Commit bc11af67 authored by Stan Hu's avatar Stan Hu
Browse files

Remove use of catching Rugged exceptions

parent 35b3a0b9
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -598,7 +598,10 @@ class Repository
# https://github.com/benbalter/licensee/blob/v8.7.0/lib/licensee/projects/git_project.rb
begin
Licensee.project(path, revision: head_commit.sha).license.try(:key)
rescue Rugged::Error
# Normally we would rescue Rugged::Error, but that is banned by lint-rugged
# and we need to migrate this endpoint to Gitaly:
# https://gitlab.com/gitlab-org/gitaly/issues/1026
rescue
end
end
cache_method :license_key
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment