Module rugged.exceptions.metadata_error

Expand source code
from rugged.lib.logger import get_logger
from tuf.api.exceptions import UnsignedMetadataError

log = get_logger()


class RuggedMetadataError(UnsignedMetadataError):

    def __init__(self, msg="Error generating TUF metadata."):
        self.msg = msg
        log.debug(f"{ self.__class__.__name__ }: { msg }")

    def __str__(self):
        return self.msg

Classes

class RuggedMetadataError (msg='Error generating TUF metadata.')

An error about metadata object with insufficient threshold of signatures.

Expand source code
class RuggedMetadataError(UnsignedMetadataError):

    def __init__(self, msg="Error generating TUF metadata."):
        self.msg = msg
        log.debug(f"{ self.__class__.__name__ }: { msg }")

    def __str__(self):
        return self.msg

Ancestors

  • tuf.api.exceptions.UnsignedMetadataError
  • tuf.api.exceptions.RepositoryError
  • builtins.Exception
  • builtins.BaseException