add ImportError

This commit is contained in:
Jeff.JF Lin 2018-04-17 22:09:04 +08:00 committed by rallytime
parent bd0c23396c
commit 11da526b21
No known key found for this signature in database
GPG Key ID: E8F1A4B90D0DEA19

View File

@ -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