From be0e5f2b234b688ec88a7e0315a4607e380fd745 Mon Sep 17 00:00:00 2001 From: Justin Kenyon Date: Mon, 24 Feb 2025 12:32:50 -0500 Subject: [PATCH] Handle not found errors Return `nil` when a repository is not found rather than raise an octokit error Signed-off-by: Justin Kenyon --- test/test_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_helper.rb b/test/test_helper.rb index 23408b9184b..c878c64d302 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -88,6 +88,8 @@ def repository(item) rescue Octokit::TooManyRequests repos[:skip_requests] = true repos[item] = true + rescue Octokit::NotFound + repos[item] = nil end def user(item)