diff options
| author | Tom Christie | 2012-02-02 09:05:28 +0000 | 
|---|---|---|
| committer | Tom Christie | 2012-02-02 09:05:28 +0000 | 
| commit | bd25e99f155b68e31239bf1c9e3d4e70d53bbddd (patch) | |
| tree | cce50ed217f40ddb22138cae3812431e1afdbdb7 | |
| parent | 1224bb6bb7a1d38370dce3af22ca63d6ca7ea4ab (diff) | |
| download | django-rest-framework-bd25e99f155b68e31239bf1c9e3d4e70d53bbddd.tar.bz2 | |
Python docs say inherit from Exception, not BaseException.
| -rw-r--r-- | djangorestframework/response.py | 2 | 
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. | 
