Skip to content

Commit

Permalink
Rescue unknown error to quash crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Aug 30, 2021
1 parent 06ac0d5 commit 92cce94
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/irb/input-method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ def auto_indent(&block)
name = driver.expand_name(name)
rescue RDoc::RI::Driver::NotFoundError
return nil
rescue
return nil # unknown error
end
doc = nil
used_for_class = false
Expand All @@ -347,6 +349,8 @@ def auto_indent(&block)
driver.add_method(doc, name)
rescue RDoc::RI::Driver::NotFoundError
doc = nil
rescue
return nil # unknown error
end
end
return nil if doc.nil?
Expand Down

0 comments on commit 92cce94

Please sign in to comment.