Commit 279bb495 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Clear pithos InternalServerError response

Do not include in the InternalServerError response
the actual error.
parent 509775bf
......@@ -1124,7 +1124,7 @@ def api_method(http_method=None, format_allowed=False, user_required=True,
return render_fault(request, fault)
except BaseException, e:
logger.exception('Unexpected error: %s' % e)
fault = InternalServerError('Unexpected error: %s' % e)
fault = InternalServerError('Unexpected error')
return render_fault(request, fault)
if getattr(request, 'backend', None) is not None:
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