summaryrefslogtreecommitdiff
path: root/lib/rubygems/source.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/source.rb')
-rw-r--r--lib/rubygems/source.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/source.rb b/lib/rubygems/source.rb
index c57b173a44..072103e8af 100644
--- a/lib/rubygems/source.rb
+++ b/lib/rubygems/source.rb
@@ -137,7 +137,7 @@ class Gem::Source
spec = Gem.read_binary local_spec
spec = begin
Marshal.load(spec)
- rescue
+ rescue StandardError
nil
end
return spec if spec