Commit 54bd1cbe by Calen Pennington

Return the course from get_course in courseware

parent d466132a
......@@ -55,6 +55,7 @@ def get_course(course_id, depth=0):
raise ValueError(u"Course not found: {0}".format(course_id))
except InvalidLocationError:
raise ValueError(u"Invalid location: {0}".format(course_id))
return course
# TODO please rename this function to get_course_by_key at next opportunity!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment