From 717ad64f4198066ae1eedfb166e38e8f00f44705 Mon Sep 17 00:00:00 2001 From: Daniel Niknam Date: Sun, 8 Aug 2021 19:45:14 +1000 Subject: [rubygems/rubygems] Replace StandardError with Exception We think it's unlikely that `rubygems/defaults/operating_system` could be shipped with a SyntaxError so StandardError could be better choice to prevent "false positives" errors. https://github.com/rubygems/rubygems/commit/1f73e784dd --- lib/rubygems.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rubygems.rb b/lib/rubygems.rb index 9b563f21ee..9e8776b027 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -1332,7 +1332,7 @@ begin require 'rubygems/defaults/operating_system' rescue LoadError # Ignored -rescue Exception => e +rescue StandardError => e msg = "#{e.message}\n" \ "Loading the rubygems/defaults/operating_system.rb file caused an error. " \ "This file is owned by your OS, not by rubygems upstream. " \ -- cgit v1.2.3