<commit_before>from clint.textui import colored


class DatacatsError(Exception):

    def __init__(self, message, format_args=(), parent_exception=None):
        try:
            self.message = message.format(format_args)
        except (ValueError, KeyError):
            self.message = message
        if parent_exception and hasattr(parent_exception, 'user_description'):
            vals = {
                "original": self.message,
                "type_description": parent_exception.user_description,
                "message": str(parent_exception),<commit_msg>Hotfix: wrong error message formatting<commit_after>from clint.textui import colored


class DatacatsError(Exception):

    def __init__(self, message, format_args=(), parent_exception=None):
        try:
            self.message = message.format(*format_args)
        except (ValueError, KeyError):
            self.message = message
        if parent_exception and hasattr(parent_exception, 'user_description'):
            vals = {
                "original": self.message,
                "type_description": parent_exception.user_description,
                "message": str(parent_exception),
{'fraction_non_alphanumeric': 0.09246575342465753, 'fraction_numerical': 0.0, 'mean_word_length': 2.7111111111111112, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3051063', 'n_tokens_mistral': 302, 'n_tokens_neox': 288, 'n_words': 65}