Fix CCX migration to be resilient to course-not-found
This commit is contained in:
@@ -70,7 +70,7 @@ def get_course_by_id(course_key, depth=0):
|
||||
if course:
|
||||
return course
|
||||
else:
|
||||
raise Http404("Course not found.")
|
||||
raise Http404("Course not found: {}.".format(unicode(course_key)))
|
||||
|
||||
|
||||
class UserNotEnrolled(Http404):
|
||||
|
||||
Reference in New Issue
Block a user