summaryrefslogtreecommitdiff
path: root/lib/classes.py
blob: 56a59d3002c1f542b5726aca79679f724f08f223 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
try:
    from .config import config as co
except SystemError:
    from config import config as co

RED = '\033[91m'
YELLOW = '\033[93m'
GREY = '\033[90m'
BLACK = '\033[0m'
BOLD = '\033[1m'

def clear():
    """
    clear the window
    """
    print('\n' * 100)

class PersonalError(Exception):

    def __init__(self, value):
        self.value = value

    def __str__(self):
        return repr(self.value)