Fix CCX migration to be resilient to course-not-found

This commit is contained in:
Nimisha Asthagiri
2016-10-18 13:12:10 -04:00
parent 4d301b9b98
commit ba9ef89e8d
2 changed files with 13 additions and 4 deletions

View File

@@ -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):