1. chrisfong
  2. django-piston

Commits

chrisfong  committed 5825c67

remove error_handler so django displays full stack trace

  • Participants
  • Parent commits 7c90898
  • Branches default

Comments (0)

Files changed (1)

File piston/resource.py

View file
         # don't want to pass these along to the handler.
         request = self.cleanup_request(request)
 
-        try:
-            result = meth(request, *args, **kwargs)
-        except Exception, e:
-            result = self.error_handler(e, request, meth, em_format)
+        # Do not catch exception so Django displays the full stack trace
+        result = meth(request, *args, **kwargs)
 
         try:
             emitter, ct = Emitter.get(em_format)