                  response = func(request, *args, **kwargs)
  
                  if isinstance(response, Response):
                      response.request = request
  
                  return response
  
              except exceptions.APIException as exc:
                  return Response({'detail': exc.detail}, status=exc.status_code)
  
 
</s>
                    if api_settings.FORMAT_SUFFIX_KWARG:
                        response.format = kwargs.get(api_settings.FORMAT_SUFFIX_KWARG, None)
                  response = func(request, *args, **kwargs)
  
                  if isinstance(response, Response):
                      response.request = request
                    if api_settings.FORMAT_SUFFIX_KWARG:
                        response.format = kwargs.get(api_settings.FORMAT_SUFFIX_KWARG, None)
                  return response
  
              except exceptions.APIException as exc:
                  return Response({'detail': exc.detail}, status=exc.status_code)
  
keep keep keep keep replace keep keep keep keep keep
 Add coverage to travis config
djangorestframework/decorators.py