diff --git a/openedx/core/djangoapps/schedules/content_highlights.py b/openedx/core/djangoapps/schedules/content_highlights.py index e0ea6f5b16..3c4148f30f 100644 --- a/openedx/core/djangoapps/schedules/content_highlights.py +++ b/openedx/core/djangoapps/schedules/content_highlights.py @@ -134,7 +134,10 @@ def _section_has_highlights(section): def _get_sections_with_highlights(course_module): - return list(filter(_section_has_highlights, course_module.get_children())) + if course_module: + return list(filter(_section_has_highlights, course_module.get_children())) + else: + return [] def _get_highlights_for_week(sections, week_num, course_key):