Пример #1
0
def ErrorHandler(httperror):
    body = _JsonResponse(
        BuildExceptionResponse(httperror.exception, httperror.traceback))
    hmac_plugin.SetHmacHeader(body, _hmac_secret)
    return body
Пример #2
0
def ErrorHandler(httperror):
    body = _JsonResponse(
        BuildExceptionResponse(httperror.exception, httperror.traceback))
    hmac_plugin.SetHmacHeader(body, user_options_store.Value('hmac_secret'))
    return body