Example #1
0
def list_events():
    global our_events
    err_msg = "Error while listing donors\n%s"
    try:
        sort_by_order.sorting_donation_by_order()
    except ValueError as lister_error:
        system("cls")
        print(err_msg % "ValueError\n%" % str(lister_error))
    except IndexError as lister_error:
        system("cls")
        print(err_msg % "IndexError" % str(lister_error))
Example #2
0
def list_events():
    global our_events
    err_msg = "Error while listing donors\n%s"
    try:
        sort_by_order.sorting_donation_by_order()
    except ValueError as lister_error:
        system("cls")
        print(err_msg % "ValueError\n%" % str(lister_error))
    except IndexError as lister_error:
        system("cls")
        print(err_msg % "IndexError" % str(lister_error))
Example #3
0
def list_events():
    try:
        sort_by_order.sorting_donation_by_order(cursor_obj=cursor_obj)
    except sql.Error as err:
        print(err)
        sleep(3)