import termcolor class ColException(Exception): def __str__(self): return termcolor.colored(super(ColException, self).__str__(), 'red')