Verified Commit e5ce16c7 authored by drebs's avatar drebs
Browse files

[bug] fix error catching in blobs resource

parent 123f9ead
Pipeline #8085 passed with stage
in 110 minutes and 24 seconds
......@@ -78,8 +78,8 @@ def _catchInvalidFlag(failure, request, user, blob_id):
request.finish()
def _catchAllErrors(self, e, request):
logger.error('Error processing request: %s' % e.getErrorMessage())
def _catchAllErrors(failure, request):
logger.error('Error processing request: %r' % failure.value)
request.setResponseCode(500)
request.finish()
......@@ -147,7 +147,7 @@ class BlobsResource(resource.Resource):
d.addCallback(_set_tag_header)
d.addCallback(_read_blob)
d.addErrback(_catchBlobNotFound, request, user, blob_id)
d.addErrback(_catchAllErrors, request, finishRequest=True)
d.addErrback(_catchAllErrors, request)
return NOT_DONE_YET
......
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