Python docs say inherit from Exception, not BaseException.

This commit is contained in:
Tom Christie 2012-02-02 09:05:28 +00:00
parent 1224bb6bb7
commit bd25e99f15

View File

@ -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.