~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/service.py

Remove remaining uses of req.throw_error in the new webapps.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
        ''' Tests the given submission '''
68
68
        exercisefile = ivle.util.open_exercise_file(self.exercise)
69
69
        if exercisefile is None:
70
 
            req.throw_error(req.HTTP_NOT_FOUND,
71
 
                "The exercise was not found.")
 
70
            raise NotFound()
72
71
 
73
72
        # Start a console to run the tests on
74
73
        jail_path = os.path.join(ivle.conf.jail_base, req.user.login)