aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb/input-method.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb/input-method.rb')
-rw-r--r--lib/irb/input-method.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb
index 3dec9d0ceb..8039f3aba9 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -331,6 +331,8 @@ module IRB
name = driver.expand_name(name)
rescue RDoc::RI::Driver::NotFoundError
return nil
+ rescue
+ return nil # unknown error
end
doc = nil
used_for_class = false
@@ -347,6 +349,8 @@ module IRB
driver.add_method(doc, name)
rescue RDoc::RI::Driver::NotFoundError
doc = nil
+ rescue
+ return nil # unknown error
end
end
return nil if doc.nil?