mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/irb] Rescue NotFoundError of RDoc::RI::Driver#expand_name
https://github.com/ruby/irb/commit/c5f13b23d7
This commit is contained in:
parent
ae4e301d5d
commit
cde84a5baa
1 changed files with 5 additions and 1 deletions
|
@ -323,7 +323,11 @@ module IRB
|
|||
name = result[pointer]
|
||||
|
||||
driver = RDoc::RI::Driver.new
|
||||
name = driver.expand_name(name)
|
||||
begin
|
||||
name = driver.expand_name(name)
|
||||
rescue RDoc::RI::Driver::NotFoundError
|
||||
return nil
|
||||
end
|
||||
doc = nil
|
||||
used_for_class = false
|
||||
if not name =~ /#|\./
|
||||
|
|
Loading…
Reference in a new issue