Skip to content

Commit 9a794be

Browse files
author
Allard Hoeve
committed
Remove mention of Django's built-in ValidationError in docstring
The `exception_handler` does not actually handle django.core.exceptions.ValidationError, so remove any mention of it. This closes #2872
1 parent 3113e8e commit 9a794be

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)