def ErrorHandler(httperror): body = _JsonResponse( BuildExceptionResponse(httperror.exception, httperror.traceback)) hmac_plugin.SetHmacHeader(body, _hmac_secret) return body
def ErrorHandler(httperror): body = _JsonResponse( BuildExceptionResponse(httperror.exception, httperror.traceback)) hmac_plugin.SetHmacHeader(body, user_options_store.Value('hmac_secret')) return body