Formula.installed: handle more exceptions.
Regardless of the exception we don't want this method to blow up. Fixes #5770.
This commit is contained in:
parent
c6101196eb
commit
f9fda0ffcc
@ -1430,7 +1430,7 @@ class Formula
|
||||
@installed ||= racks.flat_map do |rack|
|
||||
begin
|
||||
Formulary.from_rack(rack)
|
||||
rescue FormulaUnavailableError, TapFormulaAmbiguityError, TapFormulaWithOldnameAmbiguityError
|
||||
rescue
|
||||
[]
|
||||
end
|
||||
end.uniq(&:name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user