allow module search to continue even if one module fails to load

git-svn-id: file:///home/svn/framework3/trunk@7689 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2009-12-04 01:00:48 +00:00
parent 93d02320cf
commit facebbc791
1 changed files with 7 additions and 1 deletions

View File

@ -1953,7 +1953,13 @@ protected
tbl = generate_module_table(type)
module_set.each_module { |refname, mod|
o = mod.new
o = nil
begin
o = mod.new
rescue ::Exception
end
next if not o
if not regex
tbl << [ refname, o.name ]