mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
add ImportError
This commit is contained in:
parent
bd0c23396c
commit
11da526b21
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ if HAS_PIP is True:
|
|||
# pip 10.0.0 move req module under pip._internal
|
||||
try:
|
||||
from pip._internal.req import InstallRequirement
|
||||
except:
|
||||
except ImportError:
|
||||
HAS_PIP = False
|
||||
# Remove references to the loaded pip module above so reloading works
|
||||
import sys
|
||||
|
|
Loading…
Add table
Reference in a new issue