diff options
author | Sutou Kouhei <kou@clear-code.com> | 2020-09-28 07:06:27 +0900 |
---|---|---|
committer | Sutou Kouhei <kou@cozmixng.org> | 2020-11-18 09:05:13 +0900 |
commit | 1867088d90f6d9116c4c82e875a8e0ed7196bc02 (patch) | |
tree | 42a736c5ebb4db760b7dd5b655df0fa36a17bba6 /ext | |
parent | aff5eaced4ca458bebc59b62502c2addc3d7364a (diff) |
[ruby/fiddle] Remove needless rescue
GitHub: fix GH-15
Reported by Eneroth3. Thanks!!!
https://github.com/ruby/fiddle/commit/f3d70b81ec
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3780
Diffstat (limited to 'ext')
-rw-r--r-- | ext/fiddle/lib/fiddle/import.rb | 6 |
1 files changed, 1 insertions, 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) |