<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_course(self, courseid):
 """ Return the course """

        try:
            course = self.course_factory.get_course(courseid)
        except:
            raise web.notfound()

        return course