Merge pull request #23058 from edx/ddumesnil/relevant-dates-AA-4

AA-4: Be more defensive about not finding an item in modulestore
This commit is contained in:
Dillon Dumesnil
2020-02-10 09:36:50 -05:00
committed by GitHub

View File

@@ -435,7 +435,10 @@ def get_course_assignment_due_dates(course, user, request, num_return=None, incl
date_blocks = []
for (block_key, date_type), date in all_course_dates.items():
if date_type == 'due' and block_key.block_type == 'sequential':
item = store.get_item(block_key)
try:
item = store.get_item(block_key)
except ItemNotFoundError:
continue
if item.graded:
date_block = CourseAssignmentDate(course, user)
date_block.date = date