Skip to content

OCW Courses with no year/semester fail to import #441

@ChristopherChudzicki

Description

@ChristopherChudzicki

Expected Behavior

Published OCW courses import successfully.

Current Behavior

Some fail. For example, https://ocw.mit.edu/courses/res-hs-002-chemistry-behind-the-magic-chemical-demonstrations-for-the-classroom/ fails to import.

Steps to Reproduce

In docker, run ./manage.py backpopulate_ocw_data --course-name=res-hs-002-chemistry-behind-the-magic-chemical-demonstrations-for-the-classroom. This results in an error:

ValueError: Field 'year' expected a number but got ''.

Possible Solution

Either:

Confirmed with @pdpinch: Some "evergreen" OCW courses are expected to have no year/semesger

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions