Skip to content

Commit 21e7685

Browse files
committed
Fix minimal missing code
1 parent 246d162 commit 21e7685

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

backend/utils/health_check.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from fastapi.routing import APIRoute
1212

1313
from backend.common.exception import errors
14-
from backend.common.i18n import t
1514
from backend.common.log import log
1615
from backend.common.response.response_code import StandardResponseCode
1716

@@ -42,7 +41,7 @@ async def http_limit_callback(request: Request, response: Response, expire: int)
4241
"""
4342
expires = ceil(expire / 1000)
4443
raise errors.HTTPError(
45-
code=StandardResponseCode.HTTP_429, msg=t('error.limit_reached'), headers={'Retry-After': str(expires)}
44+
code=StandardResponseCode.HTTP_429, msg='请求过于频繁,请稍后重试', headers={'Retry-After': str(expires)}
4645
)
4746

4847

0 commit comments

Comments
 (0)