Course Blocks API
This commit is contained in:
committed by
J. Cliff Dyer
parent
cbf90677b7
commit
00e9237153
@@ -69,7 +69,7 @@ class DeveloperErrorViewMixin(object):
|
||||
if isinstance(exc, APIException):
|
||||
return self.make_error_response(exc.status_code, exc.detail)
|
||||
elif isinstance(exc, Http404):
|
||||
return self.make_error_response(404, "Not found.")
|
||||
return self.make_error_response(404, exc.message or "Not found.")
|
||||
elif isinstance(exc, ValidationError):
|
||||
return self.make_validation_error_response(exc)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user