diff --git a/lms/djangoapps/grades/new/subsection_grade.py b/lms/djangoapps/grades/new/subsection_grade.py index 8d56fcac1b..1ff46d4b40 100644 --- a/lms/djangoapps/grades/new/subsection_grade.py +++ b/lms/djangoapps/grades/new/subsection_grade.py @@ -131,7 +131,7 @@ class SubsectionGrade(object): # There's a chance that the value of weight is not the same value used when the problem was scored, # since we can get the value from either block_structure or CSM/submissions. - weight = block.weight + weight = getattr(block, 'weight', 1.0) if persisted_values: possible = persisted_values.get('possible', possible) weight = persisted_values.get('weight', weight)