From 9a794beb1e3a3475489944e2c2a15df14b544643 Mon Sep 17 00:00:00 2001 From: Allard Hoeve Date: Fri, 24 Apr 2015 15:37:42 +0200 Subject: [PATCH] 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 --- rest_framework/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rest_framework/views.py b/rest_framework/views.py index b4abc4d95..f0aadc0e5 100644 --- a/rest_framework/views.py +++ b/rest_framework/views.py @@ -54,8 +54,7 @@ def exception_handler(exc, context): Returns the response that should be used for any given exception. By default we handle the REST framework `APIException`, and also - Django's built-in `ValidationError`, `Http404` and `PermissionDenied` - exceptions. + Django's built-in `Http404` and `PermissionDenied` exceptions. Any unhandled exceptions may return `None`, which will cause a 500 error to be raised.