From 9804e58ceb2771a2b2f6b0a9eb285653231a7401 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Tue, 30 Jul 2024 09:51:33 -0400 Subject: [PATCH] python: don't assume resources have URLs Signed-off-by: William Woodruff --- Library/Homebrew/language/python.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/language/python.rb b/Library/Homebrew/language/python.rb index 312399ca66..431a0ed934 100644 --- a/Library/Homebrew/language/python.rb +++ b/Library/Homebrew/language/python.rb @@ -365,7 +365,7 @@ module Language def pip_install(targets, build_isolation: true) targets = Array(targets) targets.each do |t| - if t.is_a?(Resource) && t.url.end_with?("-none-any.whl") + if t.is_a?(Resource) && t.url&.end_with?("-none-any.whl") t.stage { do_install(Pathname.pwd/t.downloader.basename, build_isolation:) } elsif t.is_a?(Resource) t.stage { do_install(Pathname.pwd, build_isolation:) }