1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Log the exception when verbosity > 1

This commit is contained in:
Pradyun S. Gedam 2017-05-19 16:34:23 +05:30
parent 5605976160
commit a1ccc52970

View file

@ -319,7 +319,9 @@ class InstallCommand(RequirementCommand):
message_parts.append(permissions_part)
message_parts.append("\n")
logger.error("".join(message_parts))
logger.error(
"".join(message_parts), exc_info=(options.verbose > 1)
)
return ERROR
except PreviousBuildDirError:
options.no_clean = True