Skip to content

Commit

Permalink
catch right exception
Browse files Browse the repository at this point in the history
(cherry picked from commit a748577)
  • Loading branch information
yacn committed Feb 24, 2021
1 parent 6076237 commit 1f08212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/halite_gem/poise_python/resources/python_package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit 1f08212

Please sign in to comment.