Merge pull request #5774 from MikeMcQuaid/formula-installed-handle-standard-error

Formula.installed: handle more exceptions.
This commit is contained in:
Mike McQuaid 2019-02-21 12:28:33 +00:00 committed by GitHub
commit 4a7934d85a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)