Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
e12120be
Unverified
Commit
e12120be
authored
6 years ago
by
Awais Jibran
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Logging: Error getting the course from modulestore"
parent
1a763849
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openedx/core/djangoapps/course_groups/cohorts.py
+0
-8
0 additions, 8 deletions
openedx/core/djangoapps/course_groups/cohorts.py
with
0 additions
and
8 deletions
openedx/core/djangoapps/course_groups/cohorts.py
+
0
−
8
View file @
e12120be
...
...
@@ -19,8 +19,6 @@ from eventtracking import tracker
from
openedx.core.djangoapps.request_cache
import
clear_cache
,
get_cache
from
openedx.core.djangoapps.request_cache.middleware
import
request_cached
from
student.models
import
get_user_by_username_or_email
from
xmodule.course_module
import
CourseDescriptor
from
xmodule.error_module
import
ErrorDescriptor
from
.models
import
(
CohortMembership
,
...
...
@@ -290,12 +288,6 @@ def get_random_cohort(course_key):
If there are no existing cohorts of type RANDOM in the course, one will be created.
"""
course
=
courses
.
get_course
(
course_key
)
if
not
isinstance
(
course
,
CourseDescriptor
):
course_or_error_msg
=
course
.
error_msg
if
isinstance
(
course
,
ErrorDescriptor
)
else
unicode
(
course
)
log
.
error
(
"
COURSE_LOADING_ERROR: Error while loading course %s from the module store: %s
"
,
unicode
(
course_key
),
course_or_error_msg
)
cohorts
=
get_course_cohorts
(
course
,
assignment_type
=
CourseCohort
.
RANDOM
)
if
cohorts
:
cohort
=
local_random
().
choice
(
cohorts
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment