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:
Mike McQuaid 2019-02-20 13:05:36 +00:00
parent c6101196eb
commit f9fda0ffcc
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -1430,7 +1430,7 @@ class Formula
@installed ||= racks.flat_map do |rack| @installed ||= racks.flat_map do |rack|
begin begin
Formulary.from_rack(rack) Formulary.from_rack(rack)
rescue FormulaUnavailableError, TapFormulaAmbiguityError, TapFormulaWithOldnameAmbiguityError rescue
[] []
end end
end.uniq(&:name) end.uniq(&:name)