def get_gating_milestone(course_key, content_key, relationship):
 try:
  return find_gating_milestones(course_key, content_key, relationship)[0]
 except IndexError:
  return None

def get_gating_milestone ( course_key , content_key , relationship ) : try : return find_gating_milestones ( course_key , content_key , relationship ) [ 0 ] except IndexError : return None
gets a single gating milestone dict related to the given supplied parameters .