Commit 8b740ad7 by Jonathan Piacenti

Don't crash if progress event doesn't contain specific grading information.

parent fc5a31d4
...@@ -503,8 +503,8 @@ def get_module_system_for_user(user, field_data_cache, # TODO # pylint: disabl ...@@ -503,8 +503,8 @@ def get_module_system_for_user(user, field_data_cache, # TODO # pylint: disabl
# events. # events.
SCORE_CHANGED.send( SCORE_CHANGED.send(
sender=None, sender=None,
points_possible=event['max_value'], points_possible=event.get('max_value'),
points_earned=event['value'], points_earned=event.get('value'),
user_id=user_id, user_id=user_id,
course_id=unicode(course_id), course_id=unicode(course_id),
usage_id=unicode(descriptor.location) usage_id=unicode(descriptor.location)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment