mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-26 16:30:41 +03:00
Python docs say inherit from Exception, not BaseException.
This commit is contained in:
parent
1224bb6bb7
commit
bd25e99f15
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user