docs: def _add_credits_grade_to_section(url, section):
      """
      Given the registration url passed in,
      add credits, grade, grade date in the section object
      """
      section_reg_data = get_resource(url)
      if section_reg_data is not None:
          section.student_grade = section_reg_data['Grade']
          section.is_auditor = section_reg_data['Auditor']
          if len(section_reg_data['GradeDate']) > 0:
              section.grade_date = parse(section_reg_data["GradeDate"]).date()
          try:
              raw_credits = section_reg_data['Credits'].strip()
              section.student_credits = Decimal(raw_credits)
          except InvalidOperation:
              pass