Fix Python 3 bug in LTI stub server BOM-1006 (#22260)

This commit is contained in:
Jeremy Bowman
2019-11-08 08:42:56 -05:00
committed by GitHub
parent 923452514b
commit e0a22db806
3 changed files with 6 additions and 3 deletions

View File

@@ -139,6 +139,9 @@ def recalculate_course_and_subsection_grades_for_user(self, **kwargs): # pylint
Recalculates the course grade and all subsection grades
for the given ``user`` and ``course_key`` keyword arguments.
"""
if 'lms.djangoapps.grades.apps.GradesConfig' not in settings.INSTALLED_APPS:
# This task errors when run in-process during Studio tests, just skip it
return
user_id = kwargs.get('user_id')
course_key_str = kwargs.get('course_key')