<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def delete_if_error(path):
    '''If any exception is raised inside the context, delete the file at the
    given path, and allow the exception to continue.'''
    try:
        yield
    except Exception:
        if os.path.exists(path):
            os.remove(path)
        raise