aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Christie2012-02-02 09:05:28 +0000
committerTom Christie2012-02-02 09:05:28 +0000
commitbd25e99f155b68e31239bf1c9e3d4e70d53bbddd (patch)
treecce50ed217f40ddb22138cae3812431e1afdbdb7
parent1224bb6bb7a1d38370dce3af22ca63d6ca7ea4ab (diff)
downloaddjango-rest-framework-bd25e99f155b68e31239bf1c9e3d4e70d53bbddd.tar.bz2
Python docs say inherit from Exception, not BaseException.
-rw-r--r--djangorestframework/response.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/response.py b/djangorestframework/response.py
index 96345cee..13f0477e 100644
--- a/djangorestframework/response.py
+++ b/djangorestframework/response.py
@@ -34,7 +34,7 @@ class Response(object):
return STATUS_CODE_TEXT.get(self.status, '')
-class ErrorResponse(BaseException):
+class ErrorResponse(Exception):
"""
An exception representing an Response that should be returned immediately.
Any content should be serialized as-is, without being filtered.