Merge pull request #7117 from MikeMcQuaid/uninstall-handle-more-exceptions

keg: handle more exceptions on uninstall.
This commit is contained in:
Mike McQuaid 2020-03-04 14:36:11 +00:00 committed by GitHub
commit 46a56d0462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,7 +135,7 @@ class Keg
f = keg.to_formula
keg_formulae << f
[f.name, f.tap]
rescue FormulaUnavailableError
rescue
# If the formula for the keg can't be found,
# fall back to the information in the tab.
[keg.name, keg.tab.tap]
@ -257,8 +257,7 @@ class Keg
tap = begin
to_formula.tap
rescue FormulaUnavailableError, TapFormulaAmbiguityError,
TapFormulaWithOldnameAmbiguityError
rescue
# If the formula can't be found, just ignore aliases for now.
nil
end