mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 13:00:12 +03:00
Update signature for exception_handler as per docs here http://www.django-rest-framework.org/api-guide/exceptions/
This commit is contained in:
parent
9a4eff6820
commit
0825e3c30e
|
@ -52,7 +52,7 @@ def get_view_description(view_cls, html=False):
|
||||||
return description
|
return description
|
||||||
|
|
||||||
|
|
||||||
def exception_handler(exc, context):
|
def exception_handler(exc, **context):
|
||||||
"""
|
"""
|
||||||
Returns the response that should be used for any given exception.
|
Returns the response that should be used for any given exception.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user