From 0825e3c30eb0c5225e617f50c1faf7ed90264031 Mon Sep 17 00:00:00 2001 From: Muizudeen Kusimo Date: Fri, 16 Oct 2015 15:03:46 -0400 Subject: [PATCH] Update signature for exception_handler as per docs here http://www.django-rest-framework.org/api-guide/exceptions/ --- rest_framework/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/views.py b/rest_framework/views.py index 56e3c4e49..457d02549 100644 --- a/rest_framework/views.py +++ b/rest_framework/views.py @@ -52,7 +52,7 @@ def get_view_description(view_cls, html=False): return description -def exception_handler(exc, context): +def exception_handler(exc, **context): """ Returns the response that should be used for any given exception.