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

Raise the LegacyInstallFailure exception directly

This commit is contained in:
Pradyun Gedam 2022-01-11 19:22:12 +00:00
parent a835e0a277
commit eb462744da
No known key found for this signature in database
GPG key ID: FF99710C4332258E

View file

@ -808,7 +808,7 @@ class InstallRequirement:
)
except LegacyInstallFailure as exc:
self.install_succeeded = False
raise exc.__cause__
raise exc
except Exception:
self.install_succeeded = True
raise