mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
add ImportError
This commit is contained in:
parent
bd0c23396c
commit
11da526b21
@ -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…
Reference in New Issue
Block a user