зеркало из https://github.com/github/ruby.git
[ruby/fiddle] Remove needless rescue
GitHub: fix GH-15 Reported by Eneroth3. Thanks!!! https://github.com/ruby/fiddle/commit/f3d70b81ec
This commit is contained in:
Родитель
aff5eaced4
Коммит
1867088d90
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче