def METHOD_NAME():
    """No inner else statement."""
    for _ in range(3):
        try:
            function()
        except ValueError as verr:
            error = verr
        print("retrying...")
        if function():
            break
    else:
        raise error  # [used-before-assignment]