def fatal_exception(self, e=None, function_name=None):
    bcolors.printFail('A fatal exception has occured!')
    if (not (e == None)):
        print(str(e))
    elif (not (function_name == None)):
        print(str(function_name))
    bcolors.printBold('****PROGRAM STATE****')
    self.print_state()
    sys.exit(0)
def fatal_exception(self, e=None, function_name=None):
    bcolors.printFail('A fatal exception has occured!')
    if (not (e == None)):
        print(str(e))
    elif (not (function_name == None)):
        print(str(function_name))
    bcolors.printBold('****PROGRAM STATE****')
    self.print_state()
    sys.exit(0)