Skip to content
Snippets Groups Projects
Commit 7bdc938f authored by Joseph Weston's avatar Joseph Weston
Browse files

return 404 if exam not found

parent 5e8b6969
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,9 @@ class ExamConfig(Resource):
"""
args = patch_parser.parse_args()
exam = Exam[exam_id]
exam = Exam.get(id=exam_id)
if not exam:
return {}, 404
data_dir = app.config['DATA_DIRECTORY']
yaml_filename = exam.name + '.yml'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment