Commit bc3a67ec by David Baumgold

Fix reference error

parent 2321a2c5
......@@ -558,7 +558,7 @@ def textbook_by_id(request, org, course, name, tid):
elif request.method == 'POST':
try:
new_textbook = validate_textbook_json(request.body)
except TextbookValidationError:
except TextbookValidationError as e:
return JsonResponse({"error": e.message}, status=400)
new_textbook["id"] = tid
if textbook:
......
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