Commit d714901a by Tom Christie

Remove erronous traceback

parent d8bec115
......@@ -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."""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment