• SpeakinTelnet@sh.itjust.works
    link
    fedilink
    arrow-up
    12
    ·
    6 months ago

    There you go:

    # Start an infinite loop because True will always be True
    while True: 
        # try to run the main function, usually where everything happens
        try:
            main()
        # in the case an exception is raised in the main function simply discard (pass) and restart the loop
        except:
            pass