mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
make the requirements file exceptions "InstallationError"'s so they
don't error with tracebacks
This commit is contained in:
parent
2c5be94f10
commit
0a265de087
|
@ -18,20 +18,20 @@ class DistributionNotFound(InstallationError):
|
|||
"""Raised when a distribution cannot be found to satisfy a requirement"""
|
||||
|
||||
|
||||
class RequirementsFileParseError(PipError):
|
||||
class RequirementsFileParseError(InstallationError):
|
||||
"""Raised when a general error occurs parsing a requirements file line."""
|
||||
|
||||
|
||||
class ReqFileOnlyOneReqPerLineError(PipError):
|
||||
class ReqFileOnlyOneReqPerLineError(InstallationError):
|
||||
"""Raised when more than one requirement is found on a line in a requirements
|
||||
file."""
|
||||
|
||||
|
||||
class ReqFileOnleOneOptionPerLineError(PipError):
|
||||
class ReqFileOnleOneOptionPerLineError(InstallationError):
|
||||
"""Raised when an option is not allowed in a requirements file."""
|
||||
|
||||
|
||||
class ReqFileOptionNotAllowedWithReqError(PipError):
|
||||
class ReqFileOptionNotAllowedWithReqError(InstallationError):
|
||||
"""Raised when an option is not allowed on a requirement line in a requirements
|
||||
file."""
|
||||
|
||||
|
|
Loading…
Reference in a new issue