Source code for scrapyd.exceptions
[docs]
class ConfigError(ScrapydError):
"""Raised if a configuration error prevents Scrapyd from starting"""
[docs]
class InvalidUsernameError(ConfigError):
"""Raised if the username contains a colon"""
def __init__(self):
super().__init__(
"The `username` option contains illegal character ':'. Check and update the Scrapyd configuration file."
)
[docs]
class DirectoryTraversalError(ScrapydError):
"""Raised if the resolved path is outside the expected directory"""
[docs]
class ProjectNotFoundError(ScrapydError):
"""Raised if a project isn't found in an IEggStorage implementation"""
[docs]
class EggNotFoundError(ScrapydError):
"""Raised if an egg isn't found in an IEggStorage implementation"""