예제 #1
0
def ErrorHandler(httperror):
    body = _JsonResponse(
        BuildExceptionResponse(httperror.exception, httperror.traceback))
    hmac_plugin.SetHmacHeader(body, _hmac_secret)
    return body
예제 #2
0
파일: handlers.py 프로젝트: winkar/ycmd
def ErrorHandler(httperror):
    body = _JsonResponse(
        BuildExceptionResponse(httperror.exception, httperror.traceback))
    hmac_plugin.SetHmacHeader(body, user_options_store.Value('hmac_secret'))
    return body