From ef3a2b85455a7b49953aa17a190e522279ab9a88 Mon Sep 17 00:00:00 2001 From: Diana Huang Date: Tue, 8 Apr 2014 11:08:34 -0400 Subject: [PATCH] Use the correct response when using login. --- .../open_ended_grading_classes/grading_service_module.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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