Update signature for exception_handler as per docs here http://www.django-rest-framework.org/api-guide/exceptions/

This commit is contained in:
Muizudeen Kusimo 2015-10-16 15:03:46 -04:00
parent 9a4eff6820
commit 0825e3c30e

View File

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