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
b50f9759
Commit
b50f9759
authored
Aug 27, 2012
by
kimth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Catch queuekey --> queuestate KeyError in conversion
parent
45a64a9b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
common/lib/xmodule/xmodule/capa_module.py
+7
-1
No files found.
common/lib/xmodule/xmodule/capa_module.py
View file @
b50f9759
...
...
@@ -464,7 +464,13 @@ class CapaModule(XModule):
raise
NotFoundError
(
'Problem must be reset before it can be checked again'
)
# Problem queued. Students must wait XQUEUE_WAITTIME_BETWEEN_REQUESTS
if
self
.
lcp
.
is_queued
():
try
:
is_queued
=
self
.
lcp
.
is_queued
()
except
KeyError
:
log
.
info
(
"Caught KeyError arising from 'queuekey'-->'queuestate' conversion for CapaModule name=
%
s"
%
self
.
name
)
is_queued
=
False
if
is_queued
:
current_time
=
datetime
.
datetime
.
now
()
prev_submit_time
=
self
.
lcp
.
get_recentmost_queuetime
()
waittime_between_requests
=
settings
.
XQUEUE_WAITTIME_BETWEEN_REQUESTS
...
...
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