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
9db1b9cc
Commit
9db1b9cc
authored
May 04, 2017
by
Qubad786
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
address feedback
parent
657249bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
openedx/core/djangoapps/content/course_overviews/models.py
+11
-0
No files found.
openedx/core/djangoapps/content/course_overviews/models.py
View file @
9db1b9cc
...
...
@@ -226,11 +226,22 @@ class CourseOverview(TimeStampedModel):
])
CourseOverviewImageSet
.
create_or_update
(
course_overview
,
course
)
except
IntegrityError
:
# There is a rare race condition that will occur if
# CourseOverview.get_from_id is called while a
# another identical overview is already in the process
# 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
except
Exception
:
# pylint: disable=broad-except
log
.
exception
(
"CourseOverview for course
%
s failed!"
,
course_id
,
)
raise
return
course_overview
elif
course
is
not
None
:
...
...
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