use error.filename instead of error

This commit is contained in:
OBITORASU 2021-06-09 00:33:23 +05:30
parent 5e2c0cc8f7
commit 45930078a6
1 changed files with 1 additions and 1 deletions

View File

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