From b4b17fa892404a67049f72ea0408ee7998117004 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 4 Mar 2020 14:17:08 +0000 Subject: [PATCH] keg: handle more exceptions on uninstall. Fixes https://github.com/Homebrew/brew/issues/7110 --- Library/Homebrew/keg.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 80113f6b91..d40cf4457b 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -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