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
657249bd
Commit
657249bd
authored
May 04, 2017
by
Qubad786
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add broader exception.
parent
6be4337c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
openedx/core/djangoapps/content/course_overviews/models.py
+6
-10
No files found.
openedx/core/djangoapps/content/course_overviews/models.py
View file @
657249bd
...
@@ -226,16 +226,12 @@ class CourseOverview(TimeStampedModel):
...
@@ -226,16 +226,12 @@ class CourseOverview(TimeStampedModel):
])
])
CourseOverviewImageSet
.
create_or_update
(
course_overview
,
course
)
CourseOverviewImageSet
.
create_or_update
(
course_overview
,
course
)
except
IntegrityError
:
except
Exception
:
# pylint: disable=broad-except
# There is a rare race condition that will occur if
log
.
exception
(
# CourseOverview.get_from_id is called while a
"CourseOverview for course
%
s failed!"
,
# another identical overview is already in the process
course_id
,
# of being created.
)
# One of the overviews will be saved normally, while the
# other one will cause an IntegrityError because it tries
# to save a duplicate.
# (see: https://openedx.atlassian.net/browse/TNL-2854).
pass
return
course_overview
return
course_overview
elif
course
is
not
None
:
elif
course
is
not
None
:
raise
IOError
(
raise
IOError
(
...
...
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