From 1867088d90f6d9116c4c82e875a8e0ed7196bc02 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Mon, 28 Sep 2020 07:06:27 +0900 Subject: [PATCH] [ruby/fiddle] Remove needless rescue GitHub: fix GH-15 Reported by Eneroth3. Thanks!!! https://github.com/ruby/fiddle/commit/f3d70b81ec --- ext/fiddle/lib/fiddle/import.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ext/fiddle/lib/fiddle/import.rb b/ext/fiddle/lib/fiddle/import.rb index 5fcbb1ced8..09ffcef544 100644 --- a/ext/fiddle/lib/fiddle/import.rb +++ b/ext/fiddle/lib/fiddle/import.rb @@ -83,11 +83,7 @@ module Fiddle when Importer lib.handlers else - begin - Fiddle.dlopen(lib) - rescue DLError - raise(DLError, "can't load #{lib}") - end + Fiddle.dlopen(lib) end }.flatten() @handler = CompositeHandler.new(handles)