diff options
author | aycabta <aycabta@gmail.com> | 2021-08-29 20:05:57 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-08-29 20:30:01 +0900 |
commit | cde84a5baac7d854190d09a72bc8c4f40a6eb1ea (patch) | |
tree | 1fec781fb3d119554a138a80c51191707743f3e3 | |
parent | ae4e301d5d180251e8e8b70437e078b61aa0f42e (diff) | |
download | ruby-cde84a5baac7d854190d09a72bc8c4f40a6eb1ea.tar.gz |
[ruby/irb] Rescue NotFoundError of RDoc::RI::Driver#expand_name
https://github.com/ruby/irb/commit/c5f13b23d7
-rw-r--r-- | lib/irb/input-method.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index 1e4132ca6f..4d55e4ef3d 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -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 =~ /#|\./ |