def _validate_attributes(self, name, val):
        try:
            assert isinstance(val, dict)
        except __HOLE__:
            raise Exception("attributes must be a dictionary of name/value pairs!")

    ##############################
    # ATTRIBUTE MANAGEMENT       #
    ##############################
dataset/ETHPy150Open kxxoling/PTable/prettytable/prettytable.py/PrettyTable._validate_attributes