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
e799b95a
Commit
e799b95a
authored
Sep 10, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #652 from MITx/feature/victor/catch-s3-errors
don't break courseware if S3 is unreachable
parents
29791274
5ca06eb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
common/lib/xmodule/xmodule/course_module.py
+8
-1
No files found.
common/lib/xmodule/xmodule/course_module.py
View file @
e799b95a
...
...
@@ -99,7 +99,14 @@ class CourseDescriptor(SequenceDescriptor):
def
definition_from_xml
(
cls
,
xml_object
,
system
):
textbooks
=
[]
for
textbook
in
xml_object
.
findall
(
"textbook"
):
textbooks
.
append
(
cls
.
Textbook
.
from_xml_object
(
textbook
))
try
:
txt
=
cls
.
Textbook
.
from_xml_object
(
textbook
)
except
:
# If we can't get to S3 (e.g. on a train with no internet), don't break
# the rest of the courseware.
log
.
exception
(
"Couldn't load textbook"
)
continue
textbooks
.
append
()
xml_object
.
remove
(
textbook
)
#Load the wiki tag if it exists
...
...
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