Remove erronous traceback

This commit is contained in:
Tom Christie 2011-06-27 10:30:00 +01:00
parent d8bec115ad
commit d714901a60

View File

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