def find_workflow_uuid(galaxy_workflows,uuid):
    """
    Finds a particular workflow with the given uuid.

    :param galaxy_workflows:  The list of workflows to search through.
    :param uuid:  The workflow uuid to search for.

    :return: The matching workflow.
    :throws: Exception if no such matching workflow.
    """

    workflow = None
    for w in galaxy_workflows:
        if w['latest_workflow_uuid'] == uuid:
            if workflow != None:
                raise Exception("Error: multiple workflows with uuid="+uuid+", please use --workflow-id to specify")
            else:
                workflow=w
    return workflow