From 1f08212f0bb29936efeeafdbb5f730ebb2739c89 Mon Sep 17 00:00:00 2001 From: Isaac Boehman Date: Tue, 23 Feb 2021 20:42:49 -0800 Subject: [PATCH] catch right exception (cherry picked from commit a748577505c87927129bd61270fd49da25248251) --- files/halite_gem/poise_python/resources/python_package.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/halite_gem/poise_python/resources/python_package.rb b/files/halite_gem/poise_python/resources/python_package.rb index 9de8335..033ce4b 100644 --- a/files/halite_gem/poise_python/resources/python_package.rb +++ b/files/halite_gem/poise_python/resources/python_package.rb @@ -69,7 +69,7 @@ module PythonPackage try: from pip._internal.req import InstallRequirement install_req_from_line = InstallRequirement.from_line - except ImportError: + except (ImportError, AttributeError): from pip._internal.req.constructors import install_req_from_line packages = {}