def execute(main, exception):
    '''execute(function main, str exception)

    Execute main unless exception.'''
    assert_type((types.FunctionType, main), (str, exception))
    if exception == string:
        print_self()
    else:
        main()
execute(function main, str exception)

    Execute main unless exception.
recipes/Python/475112_Schedule_Maker/recipe-475112.py