def main(): ... except NameError: print_in_color( """ The employee name you provided does not exist in the payslip(s). Did you have a typo? It's ok, making mistakes is part of being human. Try again! """, color.YELLOW )