Skip to content

Commit c397705

Browse files
committed
Merge pull request #2873 from ByteInternet/fix-exception-handler-docs
Remove mention of Django's built-in ValidationError in docstring
2 parents 3113e8e + 9a794be commit c397705

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rest_framework/views.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ def exception_handler(exc, context):
5454
Returns the response that should be used for any given exception.
5555
5656
By default we handle the REST framework `APIException`, and also
57-
Django's built-in `ValidationError`, `Http404` and `PermissionDenied`
58-
exceptions.
57+
Django's built-in `Http404` and `PermissionDenied` exceptions.
5958
6059
Any unhandled exceptions may return `None`, which will cause a 500 error
6160
to be raised.

0 commit comments

Comments
 (0)