Fix reference error

This commit is contained in:
David Baumgold
2013-06-27 14:58:09 -04:00
parent 2321a2c563
commit bc3a67ec89

View File

@@ -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: