From e678affe70d7597464368197fb55d277f0c26bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Thu, 10 Aug 2023 17:23:32 +0200 Subject: [rubygems/rubygems] Bad auth should not fallback either https://github.com/rubygems/rubygems/commit/ba3ea27869 --- lib/bundler/fetcher/compact_index.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/bundler/fetcher/compact_index.rb b/lib/bundler/fetcher/compact_index.rb index f9db920c32..d3160251cb 100644 --- a/lib/bundler/fetcher/compact_index.rb +++ b/lib/bundler/fetcher/compact_index.rb @@ -15,7 +15,7 @@ module Bundler method.bind(self).call(*args, &blk) rescue NetworkDownError, CompactIndexClient::Updater::MisMatchedChecksumError => e raise HTTPError, e.message - rescue AuthenticationRequiredError + rescue AuthenticationRequiredError, BadAuthenticationError # Fail since we got a 401 from the server. raise rescue HTTPError => e -- cgit v1.2.3