mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-06-17 03:53:33 +03:00
Remove erronous traceback
This commit is contained in:
parent
d8bec115ad
commit
d714901a60
|
@ -113,7 +113,6 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView):
|
|||
# all other authentication is CSRF exempt.
|
||||
@csrf_exempt
|
||||
def dispatch(self, request, *args, **kwargs):
|
||||
try:
|
||||
self.request = request
|
||||
self.args = args
|
||||
self.kwargs = kwargs
|
||||
|
@ -164,10 +163,7 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView):
|
|||
response.headers.update(self.headers)
|
||||
|
||||
return self.render(response)
|
||||
except:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
raise
|
||||
|
||||
|
||||
class ModelView(View):
|
||||
"""A RESTful view that maps to a model in the database."""
|
||||
|
|
Loading…
Reference in New Issue
Block a user