Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
9c0ec682
Commit
9c0ec682
authored
Apr 08, 2014
by
Diana Huang
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3256 from edx/diana/fix-grading-service-login
Return correct response when using _try_with_login
parents
550f9d7e
ef3a2b85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
common/lib/xmodule/xmodule/open_ended_grading_classes/grading_service_module.py
+4
-3
No files found.
common/lib/xmodule/xmodule/open_ended_grading_classes/grading_service_module.py
View file @
9c0ec682
...
...
@@ -119,14 +119,15 @@ class GradingService(object):
if
(
resp_json
and
resp_json
.
get
(
'success'
)
is
False
and
resp_json
.
get
(
'error'
)
==
'login_required'
):
# appar
r
ently 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment