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
1b6778f6
Commit
1b6778f6
authored
Apr 25, 2017
by
Rabia Iftikhar
Committed by
GitHub
Apr 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14932 from edx/ri/TNL-6666-500-error-courseware
update log info
parents
77a347c1
186e820b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
lms/djangoapps/courseware/views/index.py
+7
-2
No files found.
lms/djangoapps/courseware/views/index.py
View file @
1b6778f6
...
@@ -393,11 +393,16 @@ class CoursewareIndex(View):
...
@@ -393,11 +393,16 @@ class CoursewareIndex(View):
courseware_context
[
'sequence_title'
]
=
display_items
[
self
.
section
.
position
-
1
]
\
courseware_context
[
'sequence_title'
]
=
display_items
[
self
.
section
.
position
-
1
]
\
.
display_name_with_default
.
display_name_with_default
except
IndexError
:
except
IndexError
:
log
.
info
(
"Course section {} with position {} and total section display items: {}"
.
format
(
log
.
exception
(
"IndexError loading courseware for user
%
s, course
%
s, section
%
s, position
%
d. Total items:
%
d. URL:
%
s"
,
self
.
real_user
.
username
,
self
.
course
.
id
,
self
.
section
.
display_name_with_default
,
self
.
section
.
display_name_with_default
,
self
.
section
.
position
,
self
.
section
.
position
,
len
(
display_items
),
len
(
display_items
),
))
self
.
url
,
)
raise
return
courseware_context
return
courseware_context
def
_add_entrance_exam_to_context
(
self
,
courseware_context
):
def
_add_entrance_exam_to_context
(
self
,
courseware_context
):
...
...
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