diff --git a/common/lib/xmodule/xmodule/open_ended_grading_classes/grading_service_module.py b/common/lib/xmodule/xmodule/open_ended_grading_classes/grading_service_module.py index e6c947da53..5626c05b6f 100644 --- a/common/lib/xmodule/xmodule/open_ended_grading_classes/grading_service_module.py +++ b/common/lib/xmodule/xmodule/open_ended_grading_classes/grading_service_module.py @@ -119,14 +119,15 @@ class GradingService(object): if (resp_json and resp_json.get('success') is False and resp_json.get('error') == 'login_required'): - # apparrently we aren't logged in. Try to fix that. + # apparently we aren't logged in. Try to fix that. r = self._login() if r and not r.get('success'): - log.warning("Couldn't log into staff_grading backend. Response: %s", + log.warning("Couldn't log into ORA backend. Response: %s", r) - # try again + # try again response = operation() response.raise_for_status() + resp_json = response.json() return resp_json