Source code hyperqueue/utils/package.py

1
2
3
4
5
6
7
8
9
class MissingPackageException(BaseException):
    def __init__(self, package: str):
        self.package = package

    def __str__(self):
        return (
            f"Unable to import `{self.package}`. You have to install the "
            f"`{self.package}` package."
        )