mirror of https://github.com/pypa/pip
use error.filename instead of error
This commit is contained in:
parent
5e2c0cc8f7
commit
45930078a6
|
@ -442,7 +442,7 @@ class InstallCommand(RequirementCommand):
|
|||
error, show_traceback, options.use_user_site,
|
||||
)
|
||||
if (WINDOWS and error.errno == errno.ENOENT and error.filename and
|
||||
len(str(error)) >= 270):
|
||||
len(error.filename) >= 260):
|
||||
logger.warning(
|
||||
'The following error can potentially be caused '
|
||||
'because Long Paths is disabled on your system. '
|
||||
|
|
Loading…
Reference in New Issue