Commit cb4b4f6b by Tom Christie

Remove some temporary debugging stuff

parent 18bbda84
...@@ -169,21 +169,13 @@ class Resource(RequestMixin, ResponseMixin, AuthMixin, View): ...@@ -169,21 +169,13 @@ class Resource(RequestMixin, ResponseMixin, AuthMixin, View):
except ErrorResponse, exc: except ErrorResponse, exc:
response = exc.response response = exc.response
except:
import traceback
traceback.print_exc()
# Always add these headers. # Always add these headers.
# #
# TODO - this isn't actually the correct way to set the vary header, # TODO - this isn't actually the correct way to set the vary header,
# also it's currently sub-obtimal for HTTP caching - need to sort that out. # also it's currently sub-obtimal for HTTP caching - need to sort that out.
try: response.headers['Allow'] = ', '.join(self.allowed_methods)
response.headers['Allow'] = ', '.join(self.allowed_methods) response.headers['Vary'] = 'Authenticate, Accept'
response.headers['Vary'] = 'Authenticate, Accept'
return self.emit(response) return self.emit(response)
except:
import traceback
traceback.print_exc()
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