Skip to content

Commit

Permalink
[ruby/fiddle] Remove needless rescue
Browse files Browse the repository at this point in the history
GitHub: fix GH-15

Reported by Eneroth3. Thanks!!!

ruby/fiddle@f3d70b81ec
  • Loading branch information
kou committed Nov 18, 2020
1 parent aff5eac commit 1867088
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ext/fiddle/lib/fiddle/import.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,7 @@ def dlload(*libs)
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)
Expand Down

0 comments on commit 1867088

Please sign in to comment.