class CorruptedDBEntry(Exception):
    """We tried calling :func:``json.loads`` on a string fetched from the database,
    but the operation resulted in a decodeing error."""

    def __init__(self, table: str, key: str):
        message = f"Database entry in table {table} at key {key} is not JSON-encoded or corrupted!"
        super(CorruptedDBEntry, self).__init__(message)

class CorruptedDBEntry(Exception):
    """We tried calling :func:``json.loads`` on a string fetched from the database,
    but the operation resulted in a decodeing error."""

    def __init__(self, table: str, key: str):
        message = f"Database entry in table {table} at key {key} is not JSON-encoded or corrupted!"
        super(CorruptedDBEntry, self).__init__(message)

We tried calling :func:``json.loads`` on a string fetched from the database,     but the operation resulted in a decodeing error.