From 737d9b698b42e9fb9020087a92b76ed95f14f7ef Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Tue, 24 Nov 2020 16:52:29 -0500 Subject: [PATCH] fix update-python-resources for formulae not in a tap --- Library/Homebrew/utils/pypi.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/pypi.rb b/Library/Homebrew/utils/pypi.rb index d69291b069..d1cffdfd36 100644 --- a/Library/Homebrew/utils/pypi.rb +++ b/Library/Homebrew/utils/pypi.rb @@ -130,7 +130,7 @@ module PyPI def update_python_resources!(formula, version: nil, package_name: nil, extra_packages: nil, exclude_packages: nil, print_only: false, silent: false, ignore_non_pypi_packages: false) - auto_update_list = formula.tap.pypi_formula_mappings + auto_update_list = formula.tap&.pypi_formula_mappings if auto_update_list.present? && auto_update_list.key?(formula.full_name) && package_name.blank? && extra_packages.blank? && exclude_packages.blank?