summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/specification_command.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-03-16 13:47:12 +0900
committerHiroshi SHIBATA <[email protected]>2023-03-17 18:50:55 +0900
commit6ad269dc39ab6bdf7ef195a048fa10b642374826 (patch)
tree6ba6dfbc3b6ecd67a10ae2cd4c8b5c6428838ce8 /lib/rubygems/commands/specification_command.rb
parent70164eec0f48a691dd039f55ac897036aa32e5cf (diff)
[rubygems/rubygems] util/rubocop -A --only Style/RescueStandardError
https://github.com/rubygems/rubygems/commit/80b57da926
Diffstat (limited to 'lib/rubygems/commands/specification_command.rb')
-rw-r--r--lib/rubygems/commands/specification_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/specification_command.rb b/lib/rubygems/commands/specification_command.rb
index 6025660498..fc2fb49ceb 100644
--- a/lib/rubygems/commands/specification_command.rb
+++ b/lib/rubygems/commands/specification_command.rb
@@ -108,7 +108,7 @@ Specific fields in the specification can be extracted in YAML format:
if File.exist? gem
begin
specs << Gem::Package.new(gem).spec
- rescue
+ rescue StandardError
nil
end
end