summaryrefslogtreecommitdiff
path: root/lib/rubygems/defaults.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-16 13:47:12 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-17 18:50:55 +0900
commit6ad269dc39ab6bdf7ef195a048fa10b642374826 (patch)
tree6ba6dfbc3b6ecd67a10ae2cd4c8b5c6428838ce8 /lib/rubygems/defaults.rb
parent70164eec0f48a691dd039f55ac897036aa32e5cf (diff)
[rubygems/rubygems] util/rubocop -A --only Style/RescueStandardError
https://github.com/rubygems/rubygems/commit/80b57da926
Diffstat (limited to 'lib/rubygems/defaults.rb')
-rw-r--r--lib/rubygems/defaults.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/defaults.rb b/lib/rubygems/defaults.rb
index 1de9246704..a1fdb00339 100644
--- a/lib/rubygems/defaults.rb
+++ b/lib/rubygems/defaults.rb
@@ -79,7 +79,7 @@ module Gem
def self.find_home
Dir.home.dup
- rescue
+ rescue StandardError
if Gem.win_platform?
File.expand_path File.join(ENV["HOMEDRIVE"] || ENV["SystemDrive"], "/")
else
@@ -185,7 +185,7 @@ module Gem
def self.default_exec_format
exec_format = begin
RbConfig::CONFIG["ruby_install_name"].sub("ruby", "%s")
- rescue
+ rescue StandardError
"%s"
end