def get_workflow_info(self, name, flow):
    """Get list of jobs corresponding to a workflow.

    :param name: Project name.
    :param flow: Name of flow in project.

    """
    self._logger.debug(
      'Fetching infos for workflow %s in project %s', flow, name
    )
    try:
      res = self._request(
        method='GET',
        endpoint='manager',
        params={
          'ajax': 'fetchflowjobs',
          'project': name,
          'flow': flow,
        },
      )
    except HTTPError:
      # the Azkaban server throws a NullPointerException if the flow doesn't
      # exist in the project, which causes a 500 response
      raise AzkabanError('Worklow %s not found in project %s.', flow, name)
    else:
      try:
        return _extract_json(res)
      except __HOLE__:
        # but sends a 200 empty response if the project doesn't exist
        raise AzkabanError('Project %s not found.', name)
dataset/ETHPy150Open mtth/azkaban/azkaban/remote.py/Session.get_workflow_info